From 81ca9c460511a2dbfd0cc64be75c0fb6cc831587 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 2 Nov 2005 00:12:49 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20L'affichage=20de=20la=20date=20de=20dern?= =?UTF-8?q?iere=20connexion=20=E9tait=20juste=20apr=E8s=20la=20deuxieme=20?= =?UTF-8?q?page=20acc=E9d=E9e=20au=20lieu=20de=20d=E8s=20la=20premi=E8re.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/user.class.php b/htdocs/user.class.php index 34c6f924e13..8cefac46aab 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -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);