Changeset 2665
- Timestamp:
- 07/01/08 03:45:24 (12 months ago)
- Files:
-
- 1 modified
-
branches/release-41/php/lib/mtdb_base.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-41/php/lib/mtdb_base.php
r2658 r2665 3076 3076 foreach ($cfrow as $cffield => $cfvalue) { 3077 3077 if (preg_match("/^${field_prefix}v/", $cffield)) { 3078 // FIXME: Some DBMS can't distinguish NULL from empty string. 3079 // Treat custom field that has empty string the same as field with no data. 3080 if (isset($cfvalue) && $cfvalue) { 3078 if (isset($cfvalue) && ( $cfvalue != '' )) { 3081 3079 $value = $cfvalue; 3082 3080 $field = $cffield; … … 3085 3083 } 3086 3084 } 3087 if (isset($ value)) {3085 if (isset($field)) { 3088 3086 if (preg_match("/_vblob$/", $field)) { 3089 3087 # unserialize blob if value is serialized … … 3095 3093 } 3096 3094 } 3097 $meta[$cfrow["${datasource}_meta_type"]] = $value;3098 }3095 } 3096 $meta[$cfrow["${datasource}_meta_type"]] = $value; 3099 3097 } 3100 3098 $this->_meta_cache["${obj_type}_meta_${obj_id}"] = $meta;
