bug #3287596 BLOB emptied after editing another column

This commit is contained in:
Marc Delisle
2011-04-15 15:53:42 -04:00
parent 74164e5fc0
commit a63ac127bf

View File

@@ -68,7 +68,7 @@ if (false !== $possibly_uploaded_val) {
}
// $key contains the md5() of the fieldname
if (0 === strlen($val)) {
if (0 === strlen($val) && $type != 'protected') {
// best way to avoid problems in strict mode (works also in non-strict mode)
if (isset($me_auto_increment) && isset($me_auto_increment[$key])) {
$val = 'NULL';