diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-30 20:05:18 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-30 20:05:18 +0000 |
commit | 1b259b300e32210c75b425a59a3ee3e9ff235e85 (patch) | |
tree | caff3ce40ae041b7775f49675efa4376d5e10923 /phpBB/db/mysql4.php | |
parent | 0a4f369681c7bf28c49fe9e9435b2c6ea0fd4915 (diff) | |
download | forums-1b259b300e32210c75b425a59a3ee3e9ff235e85.tar forums-1b259b300e32210c75b425a59a3ee3e9ff235e85.tar.gz forums-1b259b300e32210c75b425a59a3ee3e9ff235e85.tar.bz2 forums-1b259b300e32210c75b425a59a3ee3e9ff235e85.tar.xz forums-1b259b300e32210c75b425a59a3ee3e9ff235e85.zip |
These ones probably work ...
git-svn-id: file:///svn/phpbb/trunk@2987 89ea8834-ac86-4346-8a33-228a782c2dd0
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; } // |