diff options
Diffstat (limited to 'phpBB/db/mysql4.php')
-rw-r--r-- | phpBB/db/mysql4.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/db/mysql4.php b/phpBB/db/mysql4.php index a03216503c..921db44ba5 100644 --- a/phpBB/db/mysql4.php +++ b/phpBB/db/mysql4.php @@ -234,7 +234,7 @@ class sql_db } } - $query = $query . ' (' . implode(', ', $fields) . ') VALUES (' . implode(', ', $values) . ')'; + $query = ' (' . implode(', ', $fields) . ') VALUES (' . implode(', ', $values) . ')'; } else if ($query == 'UPDATE') { @@ -254,9 +254,10 @@ class sql_db $values[] = (is_bool($var)) ? "$key = " . intval($var) : "$key = $var"; } } + $query = implode(', ', $values); } - return implode(', ', $values); + return $query; } // |