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
This commit is contained in:
plegall 2011-06-14 12:02:33 +00:00
parent 9aa5d4e799
commit 67a2a56843

View file

@ -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].'\'';
}