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