Function is_null seems to be now working properly on empty blobs.

Tested with PHP 5.3.

Backport from master.
This commit is contained in:
Michal Čihař
2010-01-22 17:19:45 +00:00
committed by Michal Čihař
parent d1e9585c9e
commit 8ec1c4a164

View File

@@ -429,11 +429,7 @@ foreach ($rows as $row_id => $vrow) {
$real_null_value = FALSE;
$special_chars_encoded = '';
if (isset($vrow)) {
// (we are editing)
// On a BLOB that can have a NULL value, the is_null() returns
// true if it has no content but for me this is different than
// having been set explicitely to NULL so I put an exception here
if (! $field['is_blob'] && is_null($vrow[$field['Field']])) {
if (is_null($vrow[$field['Field']])) {
$real_null_value = TRUE;
$vrow[$field['Field']] = '';
$special_chars = '';