rfe #1516803 [edit] Allow to set BLOB to/from NULL with ProtectBinary.

This commit is contained in:
Michal Čihař
2010-01-22 17:20:35 +00:00
parent 98b61946eb
commit e532069912
3 changed files with 27 additions and 35 deletions

View File

@@ -121,7 +121,7 @@ if (false !== $possibly_uploaded_val) {
// (if there is a value, we ignore the Null checkbox: this could
// be possible if Javascript is disabled in the browser)
if (isset($me_fields_null[$key])
&& $val == "''") {
&& ($val == "''" || $val == '')) {
$val = 'NULL';
}