diff options
Diffstat (limited to 'src/classbase.cpp')
-rw-r--r-- | src/classbase.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/classbase.cpp b/src/classbase.cpp index 0de62dd..fbc6ed2 100644 --- a/src/classbase.cpp +++ b/src/classbase.cpp @@ -739,9 +739,9 @@ int ClassBase::hasDimension(zval *object, zval *member, int check_empty) // we know for certain that the offset exists, but should we check // more, like whether the value is empty or not? if (!check_empty) return true; - - // it should not be empty - return !arrayaccess->offsetGet(member).isEmpty(); + + // the user wants to know if the property is empty + return empty(arrayaccess->offsetGet(member)); } catch (Exception &exception) { |