mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02: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:
@@ -438,8 +438,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();
|
||||||
|
Reference in New Issue
Block a user