aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-19 17:13:22 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-19 17:13:22 +0000
commit1f6eea1b5bc47bba3b92ebd34d8d8d5af50c9fb0 (patch)
tree9eae4cd71a4b44f19286bc80956d6fae33b54bfa /phpBB/includes
parent6f0ea3c9d241b90e83ba669befcc38cf94bd6849 (diff)
downloadforums-1f6eea1b5bc47bba3b92ebd34d8d8d5af50c9fb0.tar
forums-1f6eea1b5bc47bba3b92ebd34d8d8d5af50c9fb0.tar.gz
forums-1f6eea1b5bc47bba3b92ebd34d8d8d5af50c9fb0.tar.bz2
forums-1f6eea1b5bc47bba3b92ebd34d8d8d5af50c9fb0.tar.xz
forums-1f6eea1b5bc47bba3b92ebd34d8d8d5af50c9fb0.zip
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
Diffstat (limited to 'phpBB/includes')
-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 77d45ebd43..a1266b637e 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -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();