Changeset 896 for trunk/Modules


Ignore:
Timestamp:
Mar 6, 2023, 12:37:25 PM (21 months ago)
Author:
chronos
Message:
  • Fixed: Load correctly user properties which can be null.
File:
1 edited

Legend:

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

    r893 r896  
    129129      $this->Name = $User['Name'];
    130130      $this->Role = $User['GM'];
    131       $this->Email = $User['Email'];
    132       $this->Info = $User['Info'];
    133       if ($this->Info == null) $this->Info = '';
    134       $this->PreferredVersion = $User['PreferredVersion'];
    135       $this->PreferredVersionGame = $User['PreferredVersionGame'];
     131      $this->Email = $User['Email'];     
     132      if ($User['Info'] != null) $this->Info = $User['Info'];
     133        else $this->Info = '';
     134      if ($User['PreferredVersionGame'] != null) $this->PreferredVersionGame = $User['PreferredVersionGame'];
     135        else $this->PreferredVersionGame = '';
    136136    } else $this->SetAnonymous();
    137137  }
Note: See TracChangeset for help on using the changeset viewer.