aboutsummaryrefslogtreecommitdiffstats
path: root/include/dblayer/functions_mysql.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-06-14 12:03:08 +0000
committerplegall <plg@piwigo.org>2011-06-14 12:03:08 +0000
commit2a95460f3677e0d6d13d953f1c4df4faa776b79f (patch)
tree62dfa25285e8a46c36bf7a7de41e98c19a12ff22 /include/dblayer/functions_mysql.inc.php
parent6623e735e81023e321e208ad99e04b727a78e4f7 (diff)
merge r11363 from branch 2.2 to trunk
bug 2342 fixed: with MySQL 5.5, "set level = NULL" fails because images.level is a NOT NULL field. The same test is performed in the same function (mass_updates) but for array bigger than 10 rows. git-svn-id: http://piwigo.org/svn/trunk@11364 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/dblayer/functions_mysql.inc.php')
-rw-r--r--include/dblayer/functions_mysql.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php
index 9849ca3e9..7a163af7c 100644
--- a/include/dblayer/functions_mysql.inc.php
+++ b/include/dblayer/functions_mysql.inc.php
@@ -232,7 +232,7 @@ UPDATE '.$tablename.'
{
$separator = $is_first ? '' : ",\n ";
- if (isset($data[$key]) and $data[$key] != '')
+ if (isset($data[$key]) and $data[$key] !== '')
{
$query.= $separator.$key.' = \''.$data[$key].'\'';
}