aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-12 14:21:39 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-12 14:21:39 +0000
commit786ab616a6cca7b15926a87b35165b3a994f53d0 (patch)
treed9a933e17a2d04cd7d54df8cdaa95adb8c60d9a3 /engine
parent8f5ac5c27f81b04bb71bab930638762c8c3e501e (diff)
downloadelgg-786ab616a6cca7b15926a87b35165b3a994f53d0.tar.gz
elgg-786ab616a6cca7b15926a87b35165b3a994f53d0.tar.bz2
Fixes #1414: Metadata set to a falsy value (except NULL) returns TRUE for isset($obj->md).
git-svn-id: http://code.elgg.org/elgg/trunk@3803 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 7b5cd22a3..4e201f326 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -281,12 +281,7 @@ abstract class ElggEntity implements
* @return bool
*/
function __isset($name) {
- if ($this->$name!="") {
- return true;
- }
- else {
- return false;
- }
+ return $this->$name !== NULL;
}
/**