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:
Meik Sievertsen 2008-09-19 17:13:22 +00:00
parent 6f0ea3c9d2
commit 1f6eea1b5b

View file

@ -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();