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:
parent
99152e6ee9
commit
81ca9c4605
@ -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);
|
||||||
|
if ($obj)
|
||||||
{
|
{
|
||||||
$obj = $this->db->fetch_object($result);
|
|
||||||
$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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user