aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db')
-rw-r--r--phpBB/db/mysql.php5
-rw-r--r--phpBB/db/mysql4.php5
2 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php
index fe2e93fee5..1898d0ce91 100644
--- a/phpBB/db/mysql.php
+++ b/phpBB/db/mysql.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;
}
//
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;
}
//