diff options
author | plegall <plg@piwigo.org> | 2011-06-14 12:02:33 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-06-14 12:02:33 +0000 |
commit | 67a2a5684325353da5b078c95a66f50128dd5451 (patch) | |
tree | ddb5f4f94bd613ced6995a0d4d049720be554291 /include/dblayer | |
parent | 9aa5d4e79992302cf598cbdecf120e0a90c6428a (diff) |
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/branches/2.2@11363 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/dblayer')
-rw-r--r-- | include/dblayer/functions_mysql.inc.php | 2 |
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].'\''; } |