Changeset 11363 for branches


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

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
  • branches/2.2/include/dblayer/functions_mysql.inc.php

    r8844 r11363  
    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.