Use XDB::raw variants.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 1 Oct 2010 14:21:53 +0000 (16:21 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 1 Oct 2010 14:22:54 +0000 (16:22 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/pltableeditor.php

index 14cad9d..88a4133 100644 (file)
@@ -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.");