diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index ef4f736507..439f540ece 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -55,7 +55,10 @@ $this->data = Array(); $this->data = unserialize($pref_info); $this->db->unlock(); - reset ($this->data); + // This is to supress warnings durring login + if (gettype($this->data) == "array") { + reset ($this->data); + } return $this->data; }