]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4566 handling array in output/location
authorCash Costello <cash.costello@gmail.com>
Fri, 6 Jul 2012 01:19:07 +0000 (21:19 -0400)
committerCash Costello <cash.costello@gmail.com>
Fri, 6 Jul 2012 01:19:07 +0000 (21:19 -0400)
views/default/output/location.php

index e3619d2e19c2e7679da8939f9fdcf0641517efbe..e1009f17d4c0832645e465f903b5038db2f6ac5e 100644 (file)
@@ -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);