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