aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-18 10:44:09 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-18 10:44:09 +0000
commit83d27eab014164d5988e6b16eaf5822f73218abb (patch)
tree86db40b6eb22395e269a5d84d3b8574ad8a48edb /engine
parent00b4002b0c73deefa8661f4650fe427ff2ff6e09 (diff)
downloadelgg-83d27eab014164d5988e6b16eaf5822f73218abb.tar.gz
elgg-83d27eab014164d5988e6b16eaf5822f73218abb.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Get Metadata now actually works git-svn-id: https://code.elgg.org/elgg/trunk@244 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-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.
*/