alecpl
2008-09-27 e80f502efbc451a02e53502d75956aff973d45ce
program/include/rcube_user.php
@@ -31,7 +31,7 @@
{
  public $ID = null;
  public $data = null;
  public $language = 'en_US';
  public $language = null;
  
  private $db = null;
  
@@ -78,7 +78,8 @@
   */
  function get_prefs()
  {
    $prefs = array('language' => $this->language);
    if (!empty($this->language))
      $prefs = array('language' => $this->language);
    
    if ($this->ID && $this->data['preferences'])
      $prefs += (array)unserialize($this->data['preferences']);
@@ -156,7 +157,7 @@
       WHERE  del<>1
       AND    user_id=?
       $sql_add
       ORDER BY ".$this->db->quoteIdentifier('standard')." DESC, name ASC",
       ORDER BY ".$this->db->quoteIdentifier('standard')." DESC, name ASC, identity_id ASC",
      $this->ID);
    
    return $sql_result;