Ignore:
Timestamp:
Dec 10, 2016, 12:02:43 AM (8 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

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

    r870 r871  
    151151      // Prepare cookies for permanent login
    152152      $StayLoggedSalt = $this->GetPasswordSalt();
     153      if($StayLogged == true) $StayLoggedValue = 1; else $StayLoggedValue = 0;
    153154      $this->Database->update('UserOnline', '`SessionId`="'.$SID.'"', array(
    154         'User' => $User['ID'], 'StayLogged' => $StayLogged, 'StayLoggedHash' => $StayLoggedSalt));
     155        'User' => $User['ID'], 'StayLogged' => $StayLoggedValue, 'StayLoggedHash' => $StayLoggedSalt));
    155156      if($StayLogged)
    156157      {
Note: See TracChangeset for help on using the changeset viewer.