From 3b561483a13346637dcd6dcb2a055f899a8ced62 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 13 Aug 2011 21:29:38 +0000 Subject: [PATCH] Space is to much here --- inc/sql-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/sql-functions.php b/inc/sql-functions.php index 75118871d7..a4bf3ee88d 100644 --- a/inc/sql-functions.php +++ b/inc/sql-functions.php @@ -147,13 +147,13 @@ function getUpdateSqlFromArray ($array, $tableName, $whereColumn, $whereData, $e $SQL .= '`' . $entry . '`=' . $value . ','; } else { // Strings need ticks (') around them - $SQL .= '`' . $entry . "`='" . SQL_ESCAPE($value) . "', "; + $SQL .= '`' . $entry . "`='" . SQL_ESCAPE($value) . "',"; } } else { // Handle multi-dimensional data if (is_null($value[$multiDimId])) { // NULL detected - $SQL .= '`' . $entry . '`=NULL, '; + $SQL .= '`' . $entry . '`=NULL,'; } elseif (('' . bigintval($value[$multiDimId], true, false) . '' == '' . $value[$multiDimId] . '') || ($value[$multiDimId] == 'NOW()') || (substr($value[$multiDimId], 0, 1) == '`')) { // No need for ticks (') $SQL .= '`' . $entry . '`=' . $value[$multiDimId] . ','; -- 2.39.5