Ignore:
Timestamp:
Apr 27, 2016, 11:02:50 PM (9 years ago)
Author:
chronos
Message:
  • Fixed: Errors raised by PHP 7.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UserModel.php

    r746 r828  
    7474    {
    7575      // Refresh time of last access
    76       $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('ActivityTime' => 'NOW()'));
     76      $this->Database->update('UserOnline', '`SessionId`="'.$SID.'"', array('ActivityTime' => 'NOW()'));
    7777    } else $this->Database->insert('UserOnline', array('SessionId' => $SID,
    7878      'User' => null, 'LoginTime' => 'NOW()', 'ActivityTime' => 'NOW()',
    7979      'IpAddress' => GetRemoteAddress(), 'HostName' => gethostbyaddr(GetRemoteAddress()),
    80       'ScriptName' => $_SERVER['PHP_SELF']));
     80      'ScriptName' => $_SERVER['PHP_SELF'], 'StayLogged' => 0, 'StayLoggedHash' => ''));
    8181
    8282    // Logged permanently?
     
    200200  function Login($Login, $Password, $StayLogged = false)
    201201  {
     202    if($StayLogged) $StayLogged = 1; else $StayLogged = 0;
    202203    $SID = session_id();
    203204    $Query = $this->Database->select('User', '*', 'Login="'.$Login.'"');
Note: See TracChangeset for help on using the changeset viewer.