mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fix sql_multi_insert() if called with non multi-dimensional array (Bug #32975)
git-svn-id: file:///svn/phpbb/trunk@8901 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6f0ea3c9d2
commit
1f6eea1b5b
1 changed files with 2 additions and 2 deletions
|
@ -438,8 +438,8 @@ class dbal
|
|||
// If by accident the sql array is only one-dimensional we build a normal insert statement
|
||||
if (!is_array($_sql_ary))
|
||||
{
|
||||
$query = $this->sql_build_array('INSERT', $sql_ary);
|
||||
break;
|
||||
$this->sql_query('INSERT INTO ' . $table . ' ' . $this->sql_build_array('INSERT', $sql_ary));
|
||||
return true;
|
||||
}
|
||||
|
||||
$values = array();
|
||||
|
|
Loading…
Add table
Reference in a new issue