Fix: L'affichage de la date de derniere connexion tait juste aprs la deuxieme page accde au lieu de ds la premire.

This commit is contained in:
Laurent Destailleur 2005-11-02 00:12:49 +00:00
parent 99152e6ee9
commit 81ca9c4605

View File

@ -114,15 +114,15 @@ class User
}
else
{
$sql .= " WHERE u.rowid = $this->id";
$sql .= " WHERE u.rowid = ".$this->id;
}
$result = $this->db->query($sql);
if ($result)
{
if ($this->db->num_rows($result))
$obj = $this->db->fetch_object($result);
if ($obj)
{
$obj = $this->db->fetch_object($result);
$this->id = $obj->rowid;
$this->nom = stripslashes($obj->name);
$this->prenom = stripslashes($obj->firstname);