Changeset 789 for trunk/Modules/User/User.php
- Timestamp:
- Feb 10, 2014, 4:16:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r765 r789 159 159 function Load() 160 160 { 161 $DbResult = $this->Database->query('SELECT * FROM `User` WHERE `ID` = '.$this->Id); 161 $DbResult = $this->Database->query('SELECT `User`.`PreferredVersion`,`User`.`ID`,`User`.`Team`,`User`.`Redirecting`,`User`.`Email`,`User`.`Info`,'. 162 '`User`.`Language`,`User`.`Name`,`User`.`GM`,`ClientVersion`.`Version` AS `PreferredVersionGame` FROM `User` '. 163 'LEFT JOIN `ClientVersion` ON `ClientVersion`.`Id` = `User`.`PreferredVersion` '. 164 'WHERE `User`.`ID` = '.$this->Id); 162 165 if($DbResult->num_rows > 0) 163 166 { … … 173 176 $this->Info = $User['Info']; 174 177 $this->PreferredVersion = $User['PreferredVersion']; 178 $this->PreferredVersionGame = $User['PreferredVersionGame']; 175 179 } else $this->SetAnonymous(); 176 180 }
Note:
See TracChangeset
for help on using the changeset viewer.