diff options
author | wei <> | 2006-08-01 02:25:43 +0000 |
---|---|---|
committer | wei <> | 2006-08-01 02:25:43 +0000 |
commit | ccfa7850dc435ae9941cde18be827b3aac550f85 (patch) | |
tree | ac53f7faed20cf324c2671dc3da8512621be7903 /framework/DataAccess/SQLMap | |
parent | 9e322be6166ce34a93c8d5ba4854093c95fc036b (diff) |
Fixed #250
Diffstat (limited to 'framework/DataAccess/SQLMap')
-rw-r--r-- | framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php | 4 |
1 files changed, 2 insertions, 2 deletions
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;
|