From 98b61946eb8f4eed978b57cccee56e499e94956a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 22 Jan 2010 17:19:45 +0000 Subject: [PATCH] Function is_null seems to be now working properly on empty blobs. Tested with PHP 5.3. --- tbl_change.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tbl_change.php b/tbl_change.php index 3bae4bf5d..63d5757f1 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -429,10 +429,7 @@ foreach ($rows as $row_id => $vrow) { $real_null_value = FALSE; $special_chars_encoded = ''; if (isset($vrow)) { - // 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 = '';