diff options
Diffstat (limited to 'framework')
-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;
|