From a63ac127bfc0ff6faceafebc8e5bc70b63a88db1 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 15 Apr 2011 15:53:42 -0400 Subject: [PATCH] bug #3287596 BLOB emptied after editing another column --- libraries/tbl_replace_fields.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/tbl_replace_fields.inc.php b/libraries/tbl_replace_fields.inc.php index 84377bfdf..e1d98c895 100644 --- a/libraries/tbl_replace_fields.inc.php +++ b/libraries/tbl_replace_fields.inc.php @@ -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';