Fix: L'affichage de la date de derniere connexion était juste après la deuxieme page accédée au lieu de dès la première.

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 else
{ {
$sql .= " WHERE u.rowid = $this->id"; $sql .= " WHERE u.rowid = ".$this->id;
} }
$result = $this->db->query($sql); $result = $this->db->query($sql);
if ($result) if ($result)
{
if ($this->db->num_rows($result))
{ {
$obj = $this->db->fetch_object($result); $obj = $this->db->fetch_object($result);
if ($obj)
{
$this->id = $obj->rowid; $this->id = $obj->rowid;
$this->nom = stripslashes($obj->name); $this->nom = stripslashes($obj->name);
$this->prenom = stripslashes($obj->firstname); $this->prenom = stripslashes($obj->firstname);