Ignore:
Timestamp:
Feb 10, 2014, 4:16:56 PM (11 years ago)
Author:
maron
Message:
File:
1 edited

Legend:

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

    r765 r789  
    159159  function Load()
    160160  {
    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);
    162165    if($DbResult->num_rows > 0)
    163166    {
     
    173176      $this->Info = $User['Info'];
    174177      $this->PreferredVersion = $User['PreferredVersion'];
     178      $this->PreferredVersionGame = $User['PreferredVersionGame'];
    175179    } else $this->SetAnonymous();
    176180  }
Note: See TracChangeset for help on using the changeset viewer.