diff options
author | xue <> | 2006-03-24 23:06:31 +0000 |
---|---|---|
committer | xue <> | 2006-03-24 23:06:31 +0000 |
commit | 8df1407a11df3e5a8c33c6fae1c522707aefccf3 (patch) | |
tree | d65fbc70a3c0f22e188f26d413fc7a52f22edb23 /framework/Data | |
parent | c8494fb1d1b8e5e6d2c135d8a8d8777442dae306 (diff) |
Enhanced error context display when a PHP error occurs.
Diffstat (limited to 'framework/Data')
-rw-r--r-- | framework/Data/TDataFieldAccessor.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/TDataFieldAccessor.php b/framework/Data/TDataFieldAccessor.php index a28b9d1f..aa6d7be7 100644 --- a/framework/Data/TDataFieldAccessor.php +++ b/framework/Data/TDataFieldAccessor.php @@ -78,7 +78,7 @@ class TDataFieldAccessor {
if(is_array($data) || ($data instanceof ArrayAccess))
{
- if(isset($data[$field]))
+ if(isset($data[$field]) || $data[$field]===null)
return $data[$field];
else
throw new TInvalidDataValueException('datafieldaccessor_datafield_invalid',$field);
|