]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
entities can now have metadata of 0 and return the correct type. Fixes #1192
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 24 Nov 2009 01:53:48 +0000 (01:53 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 24 Nov 2009 01:53:48 +0000 (01:53 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3705 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/entities.php

index 1ac8b37bb0c2111a9d839d3ab5fb964f180cd8ce..df8cc2f7f72453f50c3ab1099dc597082dbbfe3b 100644 (file)
@@ -143,12 +143,9 @@ abstract class ElggEntity implements
 
                // No, so see if its in the meta data for this entity
                $meta = $this->getMetaData($name);
-               if ($meta) {
-                       return $meta;
-               }
-
-               // Can't find it, so return null
-               return null;
+               
+               // getMetaData returns NULL if $name is not found
+               return $meta;
        }
 
        /**