aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 9c1de36f0..745b46ee6 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -112,7 +112,12 @@
*/
public function getMetaData($name)
{
- return get_metadata_byname($name);
+ $md = get_metadata_byname($this->getGUID(), $name);
+
+ if ($md)
+ return $md->value;
+
+ return null;
}
/**
@@ -227,10 +232,6 @@
public function getTimeCreated() { return $this->get('time_created'); }
public function getTimeUpdated() { return $this->get('time_updated'); }
-
- // TODO: Friends/relationships
-
-
/**
* Save generic attributes to the entities table.
*/