summaryrefslogtreecommitdiff
path: root/framework/DataAccess/SQLMap/DataMapper
diff options
context:
space:
mode:
Diffstat (limited to 'framework/DataAccess/SQLMap/DataMapper')
-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;