Changeset 11364


Ignore:
Timestamp:
Jun 14, 2011, 2:03:08 PM (13 years ago)
Author:
plg
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/dblayer/functions_mysql.inc.php

    r8844 r11364  
    233233        $separator = $is_first ? '' : ",\n    ";
    234234
    235         if (isset($data[$key]) and $data[$key] != '')
     235        if (isset($data[$key]) and $data[$key] !== '')
    236236        {
    237237          $query.= $separator.$key.' = \''.$data[$key].'\'';
Note: See TracChangeset for help on using the changeset viewer.