aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/entities.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 1ac8b37bb..df8cc2f7f 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -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;
}
/**