aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-05 21:19:07 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-05 21:19:07 -0400
commitb69746ed748ca3eda46e52f80b15defa951fd7c9 (patch)
tree80706f43cf28a759674a41cfa6afecb375d5042f
parent13dbb61c599254b6ff59c771fdb69b2641cd1d3d (diff)
downloadelgg-b69746ed748ca3eda46e52f80b15defa951fd7c9.tar.gz
elgg-b69746ed748ca3eda46e52f80b15defa951fd7c9.tar.bz2
Fixes #4566 handling array in output/location
-rw-r--r--views/default/output/location.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/default/output/location.php b/views/default/output/location.php
index e3619d2e1..e1009f17d 100644
--- a/views/default/output/location.php
+++ b/views/default/output/location.php
@@ -11,4 +11,9 @@ if (isset($vars['entity'])) {
unset($vars['entity']);
}
+// Fixes #4566 we used to allow arrays of strings for location
+if (is_array($vars['value'])) {
+ $vars['value'] = implode(', ', $vars['value']);
+}
+
echo elgg_view('output/tag', $vars);