Changeset 111 for branches/php/Base/User.php
- Timestamp:
- Jan 19, 2014, 12:43:49 AM (11 years ago)
- Location:
- branches/php
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/php
- Property svn:ignore
-
old new 1 2 1 config.php 3 4 2 error.log 3 .project
-
- Property svn:ignore
-
branches/php/Base/User.php
r22 r111 11 11 function LoadData() 12 12 { 13 $DbResult = $this->System->Database->select('User', '*', 'Id='.$this->Id); 14 if($DbResult->num_rows > 0) 15 { 16 $this->Data = $DbResult->fetch_assoc(); 17 if($this->Data['Rank'] == '') $this->Data['Rank'] = 0; 18 } else throw new Exception('User with id '.$this->Id.' not found'); 13 if($this->Id != null) 14 { 15 $DbResult = $this->System->Database->select('User', '*', 'Id='.$this->Id); 16 if($DbResult->num_rows > 0) 17 { 18 $this->Data = $DbResult->fetch_assoc(); 19 if($this->Data['Rank'] == '') $this->Data['Rank'] = 0; 20 } else throw new Exception('User with id '.$this->Id.' not found'); 21 } else $this->Data = array(); 19 22 } 20 23
Note:
See TracChangeset
for help on using the changeset viewer.