]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1414: Metadata set to a falsy value (except NULL) returns TRUE for isset(...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 12 Jan 2010 14:21:39 +0000 (14:21 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 12 Jan 2010 14:21:39 +0000 (14:21 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3803 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/entities.php

index 7b5cd22a3e433640b638e59c37a45ea28cb034be..4e201f32617b8714faa60111285ffe94794adf18 100644 (file)
@@ -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;
        }
 
        /**