Fix: probleme avec les apostrophes
This commit is contained in:
parent
74216fd4fa
commit
5e7b65b917
@ -410,8 +410,8 @@ class UserGroup
|
||||
function update()
|
||||
{
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."usergroup SET ";
|
||||
$sql .= " nom = '$this->nom',";
|
||||
$sql .= " note = '$this->note'";
|
||||
$sql .= " nom = '".addslashes($this->nom)."',";
|
||||
$sql .= " note = '".addslashes($this->note)."'";
|
||||
$sql .= " WHERE rowid = ".$this->id;
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user