Fix: probleme avec les apostrophes

This commit is contained in:
Regis Houssin 2006-03-31 08:42:56 +00:00
parent 74216fd4fa
commit 5e7b65b917

View File

@ -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);