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