Legend:
- Unmodified
- Added
- Removed
-
user.php
r20 r28 54 54 if($Row['User'] != 0) 55 55 { 56 $Query = $this->Database->query('SELECT * FROM `'.$this->TableUser.'` WHERE `I temId`='.$Row['User'].' ORDER BY `Id` DESC LIMIT 1');56 $Query = $this->Database->query('SELECT * FROM `'.$this->TableUser.'` WHERE `Id`='.$Row['User']); 57 57 $this->User = $Query->fetch_assoc(); 58 58 //print_r($this->User); … … 60 60 } else 61 61 { 62 $Query = $this->Database->select($this->TableUser, '*', "`I temId`=0");62 $Query = $this->Database->select($this->TableUser, '*', "`Id`=0"); 63 63 $this->User = $Query->fetch_assoc(); 64 64 $Result = USER_NOT_LOGGED; … … 139 139 { 140 140 $this->Database->update($this->TableUser, 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()')); 141 $this->Database->update($this->TableUserOnline, 'SessionId="'.$SID.'"', array('User' => $Row['I temId'], 'ItemId' => $Row['ItemId']));141 $this->Database->update($this->TableUserOnline, 'SessionId="'.$SID.'"', array('User' => $Row['Id'], 'Id' => $Row['mId'])); 142 142 // načtení stavu stromu 143 143 $Result = USER_LOGGED_IN;
Note:
See TracChangeset
for help on using the changeset viewer.