diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-15 18:31:42 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-15 18:31:42 +0100 |
commit | 3bcd6e21d1142b5ec35f99c4bdcd925bf7ae5083 (patch) | |
tree | 08903d9b7e7b2bd57fa1a01fc873d618a17b0a8f /src/classbase.cpp | |
parent | 38b866988761f4da01eab769dc660b06b07e97be (diff) |
added empty() function, and added HardCoded class
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) { |