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:
parent
99152e6ee9
commit
81ca9c4605
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user