Changeset 223


Ignore:
Timestamp:
Jan 9, 2007 12:44:18 AM (17 years ago)
Author:
quinn
Message:

Q - fixed bug: PHP Notice: Undefined index: authenticated...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/2.0.2/lib/Auth_SQL.inc.php

    r126 r223  
    503503        // Test login with information stored in session. Skip IP matching for users from trusted networks.
    504504        if (isset($_SESSION[$this->_sess])
    505             && true === $_SESSION[$this->_sess]['authenticated']
     505            && isset($_SESSION[$this->_sess]['authenticated']) && true === $_SESSION[$this->_sess]['authenticated']
    506506            && !empty($_SESSION[$this->_sess]['username'])
    507507            && strtotime($_SESSION[$this->_sess]['login_datetime']) > time() - $this->_params['login_timeout']
     
    525525                App::logMsg(sprintf('User update failed. Record not found for %s %s (%s).', $this->_auth, $this->getVal('user_id'), $this->getVal('username')), LOG_NOTICE, __FILE__, __LINE__);
    526526            }
    527         } else if (isset($_SESSION[$this->_sess]) && true === $_SESSION[$this->_sess]['authenticated']) {
     527        } else if (isset($_SESSION[$this->_sess]['authenticated']) && true === $_SESSION[$this->_sess]['authenticated']) {
    528528            // User is authenticated, but login has expired.
    529529            if (strtotime($_SESSION[$this->_sess]['last_access_datetime']) > time() - 43200) {
Note: See TracChangeset for help on using the changeset viewer.