summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorxue <>2006-03-24 23:06:31 +0000
committerxue <>2006-03-24 23:06:31 +0000
commit8df1407a11df3e5a8c33c6fae1c522707aefccf3 (patch)
treed65fbc70a3c0f22e188f26d413fc7a52f22edb23 /framework/Data
parentc8494fb1d1b8e5e6d2c135d8a8d8777442dae306 (diff)
Enhanced error context display when a PHP error occurs.
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/TDataFieldAccessor.php2
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);