community hub finder MDL-25768 private hubs weren't displayed in the hub list
authorjeromemoodle <jerome@moodle.com>
Wed, 5 Jan 2011 06:27:54 +0000 (14:27 +0800)
committerjeromemoodle <jerome@moodle.com>
Wed, 5 Jan 2011 06:27:54 +0000 (14:27 +0800)
blocks/community/forms.php

index 8d16563..c4abd1e 100644 (file)
@@ -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)) {