aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db/mysql.php')
-rw-r--r--phpBB/db/mysql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php
index f9be4b839a..1fafc51152 100644
--- a/phpBB/db/mysql.php
+++ b/phpBB/db/mysql.php
@@ -186,7 +186,7 @@ class sql_db
}
elseif (is_string($var))
{
- $values[] = str_replace("'", "''", $var);
+ $values[] = "'" . str_replace("'", "''", $var) . "'";
}
else
{
@@ -201,7 +201,7 @@ class sql_db
$values = array();
foreach ($assoc_ary as $key => $var)
{
- if (is_null($var)
+ if (is_null($var))
{
$values[] = "$key = NULL";
}