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:
Meik Sievertsen 2008-09-19 17:12:04 +00:00
parent 0b0da7b333
commit 20f9b87f04

View file

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