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

fixed bug: PHP Notice: Undefined index: authenticated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Auth_SQL.inc.php

    r203 r224  
    529529
    530530        // Test login with information stored in session. Skip IP matching for users from trusted networks.
    531         if (isset($_SESSION['_auth_sql'][$this->_ns])
     531        if (isset($_SESSION['_auth_sql'][$this->_ns]['authenticated'])
    532532            && true === $_SESSION['_auth_sql'][$this->_ns]['authenticated']
    533533            && !empty($_SESSION['_auth_sql'][$this->_ns]['username'])
     
    552552                $app->logMsg(sprintf('User update failed. Record not found for user %s (%s).', $this->get('user_id'), $this->get('username')), LOG_NOTICE, __FILE__, __LINE__);
    553553            }
    554         } else if (isset($_SESSION['_auth_sql'][$this->_ns]) && true === $_SESSION['_auth_sql'][$this->_ns]['authenticated']) {
     554        } else if (isset($_SESSION['_auth_sql'][$this->_ns]['authenticated']) && true === $_SESSION['_auth_sql'][$this->_ns]['authenticated']) {
    555555            // User is authenticated, but login has expired.
    556556            if (strtotime($_SESSION['_auth_sql'][$this->_ns]['last_access_datetime']) > time() - 43200) {
Note: See TracChangeset for help on using the changeset viewer.