aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-19 17:12:04 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-19 17:12:04 +0000
commit20f9b87f04fb2eab0eef9411918878ef9e689891 (patch)
tree7dedbc84c7eea4754fed7142368b6e620f6b9818 /phpBB/includes/db
parent0b0da7b33327ecf6a93a8519a4c9ec6c33129d59 (diff)
downloadforums-20f9b87f04fb2eab0eef9411918878ef9e689891.tar
forums-20f9b87f04fb2eab0eef9411918878ef9e689891.tar.gz
forums-20f9b87f04fb2eab0eef9411918878ef9e689891.tar.bz2
forums-20f9b87f04fb2eab0eef9411918878ef9e689891.tar.xz
forums-20f9b87f04fb2eab0eef9411918878ef9e689891.zip
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
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/dbal.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index 039545fc1f..179eff65d2 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -435,8 +435,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();