aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-04-16 17:43:18 -0400
committerBrett Profitt <brett.profitt@gmail.com>2011-04-16 17:43:18 -0400
commit628aa953ec150a1ed34680ef1d4f9c81dfc99bb1 (patch)
tree30e91cb88799a7c81be03759bbcec7d5bf255d1e /engine/lib/metadata.php
parent309dff2bf948ab191ccb1e8d4a777e49ad498820 (diff)
downloadelgg-628aa953ec150a1ed34680ef1d4f9c81dfc99bb1.tar.gz
elgg-628aa953ec150a1ed34680ef1d4f9c81dfc99bb1.tar.bz2
Denormalizing annotation names for calculation functions.
Diffstat (limited to 'engine/lib/metadata.php')
-rw-r--r--engine/lib/metadata.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index a6b1bb43a..26741af90 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -290,6 +290,11 @@ $access_id = ACCESS_PRIVATE, $allow_multiple = false) {
*/
function elgg_get_metadata(array $options = array()) {
$options['metastring_type'] = 'metadata';
+ if (isset($options['joins'])) {
+ if (!is_array($options['joins'])) {
+ $options['joins'] = array($options['joins']);
+ }
+ }
return elgg_get_metastring_based_objects($options);
}