From 6a658c9173a55bde66a410ee3dd78879e0202ac4 Mon Sep 17 00:00:00 2001 From: jeromemoodle Date: Wed, 5 Jan 2011 14:27:54 +0800 Subject: [PATCH] community hub finder MDL-25768 private hubs weren't displayed in the hub list --- blocks/community/forms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/community/forms.php b/blocks/community/forms.php index 8d165635014..c4abd1e3520 100644 --- a/blocks/community/forms.php +++ b/blocks/community/forms.php @@ -131,7 +131,7 @@ class community_hub_search_form extends moodleform { } } if (!empty($additionalhubs)) { - $hubs = $hubs + $additionalhubs; + $hubs = array_merge($hubs, $additionalhubs); } if (!empty($hubs)) { @@ -174,7 +174,7 @@ class community_hub_search_form extends moodleform { array('class' => $hub['trusted'] ? 'hubtrusted' : 'hubnottrusted')); } else { $hubdescription = html_writer::tag('a', $hub['name'], - array('class' => 'hublink', 'href' => $hub['url'])); + array('class' => 'hublink hubtrusted', 'href' => $hub['url'])); } if (empty($firsthub)) { -- 2.43.0