114 |
} |
} |
115 |
else |
else |
116 |
{ |
{ |
117 |
$sql .= " WHERE u.rowid = $this->id"; |
$sql .= " WHERE u.rowid = ".$this->id; |
118 |
} |
} |
119 |
|
|
120 |
$result = $this->db->query($sql); |
$result = $this->db->query($sql); |
121 |
if ($result) |
if ($result) |
122 |
{ |
{ |
123 |
if ($this->db->num_rows($result)) |
$obj = $this->db->fetch_object($result); |
124 |
|
if ($obj) |
125 |
{ |
{ |
|
$obj = $this->db->fetch_object($result); |
|
126 |
$this->id = $obj->rowid; |
$this->id = $obj->rowid; |
127 |
$this->nom = stripslashes($obj->name); |
$this->nom = stripslashes($obj->name); |
128 |
$this->prenom = stripslashes($obj->firstname); |
$this->prenom = stripslashes($obj->firstname); |