diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-02 10:42:44 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-02 10:42:44 +0000 |
commit | 366b25dd6651304525f227584f350caaaefc4b6c (patch) | |
tree | e6f66c0047f98fe2e38cc3b56e2c38b67c16bc54 | |
parent | 7408dbeeec631ee12705f76dab799b59c3c8914a (diff) | |
download | elgg-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
-rw-r--r-- | engine/lib/metadata.php | 2 |
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; } |