From 786ab616a6cca7b15926a87b35165b3a994f53d0 Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 12 Jan 2010 14:21:39 +0000 Subject: 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 --- engine/lib/entities.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'engine') 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; } /** -- cgit v1.2.3