mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/11693] Change sql_build_array to support DELETE
PHPBB3-11693
This commit is contained in:
parent
6152d6c41e
commit
a88366f4b6
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue