From b69746ed748ca3eda46e52f80b15defa951fd7c9 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Thu, 5 Jul 2012 21:19:07 -0400 Subject: Fixes #4566 handling array in output/location --- views/default/output/location.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'views') 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); -- cgit v1.2.3