From: Florent Bruneau Date: Fri, 1 Oct 2010 14:21:53 +0000 (+0200) Subject: Use XDB::raw variants. X-Git-Tag: core/1.1.1~15 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=acfa828e1057ce2edc55437cd69c615e3b06f56e;p=platal.git Use XDB::raw variants. Signed-off-by: Florent Bruneau --- diff --git a/classes/pltableeditor.php b/classes/pltableeditor.php index 14cad9d..88a4133 100644 --- a/classes/pltableeditor.php +++ b/classes/pltableeditor.php @@ -325,15 +325,15 @@ class PLTableEditor $update[] = $field . ' = ' . $value; } $update = implode(', ', $update); - XDB::execute("UPDATE {$this->table} - SET {$update} - WHERE {$this->idfield} = " . XDB::escape($id) . " - AND {$this->whereclause}"); + XDB::rawExecute("UPDATE {$this->table} + SET {$update} + WHERE {$this->idfield} = " . XDB::escape($id) . " + AND {$this->whereclause}"); } else { $fields = implode(', ', array_keys($values)); $values = implode(', ', $values); - XDB::execute("INSERT INTO {$this->table} ({$fields}) - VALUES ({$values})"); + XDB::rawExecute("INSERT INTO {$this->table} ({$fields}) + VALUES ({$values})"); } if ($id !== false && $id !== null) { $page->trigSuccess("L'entrée ".$id." a été mise à jour.");