Function is_null seems to be now working properly on empty blobs.
Tested with PHP 5.3.
This commit is contained in:
@@ -429,10 +429,7 @@ foreach ($rows as $row_id => $vrow) {
|
|||||||
$real_null_value = FALSE;
|
$real_null_value = FALSE;
|
||||||
$special_chars_encoded = '';
|
$special_chars_encoded = '';
|
||||||
if (isset($vrow)) {
|
if (isset($vrow)) {
|
||||||
// On a BLOB that can have a NULL value, the is_null() returns
|
if (is_null($vrow[$field['Field']])) {
|
||||||
// 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']])) {
|
|
||||||
$real_null_value = TRUE;
|
$real_null_value = TRUE;
|
||||||
$vrow[$field['Field']] = '';
|
$vrow[$field['Field']] = '';
|
||||||
$special_chars = '';
|
$special_chars = '';
|
||||||
|
Reference in New Issue
Block a user