aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/metadata.php
diff options
context:
space:
mode:
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);
}