diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2014-03-05 18:31:36 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2014-03-05 18:31:36 -0600 |
commit | ad46fe62d8f2aa2b8f4419230d20855365e16de5 (patch) | |
tree | 862fbfabd5d826bfd4e1ddc3dd3bd623330c9f8a /phpBB | |
parent | 9b1b57c649e11fd571f7d928333427b5a044c9ce (diff) | |
parent | a88366f4b6807c27de9bf8029ca2e37c45bc9978 (diff) | |
download | forums-ad46fe62d8f2aa2b8f4419230d20855365e16de5.tar forums-ad46fe62d8f2aa2b8f4419230d20855365e16de5.tar.gz forums-ad46fe62d8f2aa2b8f4419230d20855365e16de5.tar.bz2 forums-ad46fe62d8f2aa2b8f4419230d20855365e16de5.tar.xz forums-ad46fe62d8f2aa2b8f4419230d20855365e16de5.zip |
Merge pull request #2075 from Elsensee/ticket/11693
[ticket/11693] Change sql_build_array to support DELETE
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/db/driver/driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/driver/driver.php b/phpBB/phpbb/db/driver/driver.php index d721ed2eb7..b61800006f 100644 --- a/phpBB/phpbb/db/driver/driver.php +++ b/phpBB/phpbb/db/driver/driver.php @@ -388,7 +388,7 @@ class driver * Build sql statement from array for insert/update/select statements * * Idea for this from Ikonboard - * Possible query values: INSERT, INSERT_SELECT, UPDATE, SELECT + * Possible query values: INSERT, INSERT_SELECT, UPDATE, SELECT, DELETE * */ function sql_build_array($query, $assoc_ary = false) @@ -423,7 +423,7 @@ class driver { trigger_error('The MULTI_INSERT query value is no longer supported. Please use sql_multi_insert() instead.', E_USER_ERROR); } - else if ($query == 'UPDATE' || $query == 'SELECT') + else if ($query == 'UPDATE' || $query == 'SELECT' || $query == 'DELETE') { $values = array(); foreach ($assoc_ary as $key => $var) |