From acfa828e1057ce2edc55437cd69c615e3b06f56e Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Fri, 1 Oct 2010 16:21:53 +0200 Subject: [PATCH] Use XDB::raw variants. Signed-off-by: Florent Bruneau --- classes/pltableeditor.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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."); -- 2.1.4