From ccfa7850dc435ae9941cde18be827b3aac550f85 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 1 Aug 2006 02:25:43 +0000 Subject: Fixed #250 --- framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/DataAccess') diff --git a/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php b/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php index e4177be0..1884f6fc 100644 --- a/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php +++ b/framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php @@ -46,7 +46,7 @@ class TPropertyAccess { if(is_array($object) || $object instanceof ArrayAccess) { - if(isset($object[$prop])) + if(array_key_exists($prop, $object)) $object = $object[$prop]; else throw new TInvalidPropertyException('sqlmap_invalid_property',$path); @@ -76,7 +76,7 @@ class TPropertyAccess { if(is_array($object) || $object instanceof ArrayAccess) { - if(isset($object[$prop])) + if(array_key_exists($prop, $object)) $object = $object[$prop]; else return false; -- cgit v1.2.3