summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwei <>2006-08-01 02:25:43 +0000
committerwei <>2006-08-01 02:25:43 +0000
commitccfa7850dc435ae9941cde18be827b3aac550f85 (patch)
treeac53f7faed20cf324c2671dc3da8512621be7903
parent9e322be6166ce34a93c8d5ba4854093c95fc036b (diff)
Fixed #250
-rw-r--r--framework/DataAccess/SQLMap/DataMapper/TPropertyAccess.php4
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;