aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 10:42:44 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 10:42:44 +0000
commit366b25dd6651304525f227584f350caaaefc4b6c (patch)
treee6f66c0047f98fe2e38cc3b56e2c38b67c16bc54 /engine
parent7408dbeeec631ee12705f76dab799b59c3c8914a (diff)
downloadelgg-366b25dd6651304525f227584f350caaaefc4b6c.tar.gz
elgg-366b25dd6651304525f227584f350caaaefc4b6c.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* get_metadata_byname better handles single/multiple return values git-svn-id: https://code.elgg.org/elgg/trunk@339 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/metadata.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index 01a981945..83336cd94 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -270,7 +270,7 @@
return false;
if (count($result) == 1)
- return $result[0]->value;
+ return $result[0];
return $result;
}