mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-29 04:39:56 +03:00
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
This commit is contained in:
parent
6623e735e8
commit
2a95460f36
1 changed files with 1 additions and 1 deletions
|
@ -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].'\'';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue