Cleaned up warnings durring login

This commit is contained in:
jengo 2001-02-07 13:00:56 +00:00
parent 7535e51660
commit b1d7e24dd3

View File

@ -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;
}