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