Browse Source

fix add icons BT#12926

Alex Aragon 7 years ago
parent
commit
6fe6e1a80c

+ 0 - 3
app/Resources/public/css/base.css

@@ -4362,9 +4362,6 @@ div#chat-remote-video video {
   width: 100%;
 }
 /* CSS Forum */
-.forum {
-  border-color: #dddddd !important;
-}
 .forum .number-post{
   background-color: #F7F7F9;
   border: 1px solid #E1E1E1 ;

+ 5 - 2
main/forum/viewforumcategory.php

@@ -254,8 +254,10 @@ if ($action_forums != 'add') {
 
     // Step 4: We display all the forums in this category.
     $forum_count = 0;
-    foreach ($forum_list as $key => $forum) {
-        if ($forum['forum_category'] == $forum_category['cat_id']) {
+    
+    foreach ($forum_list as $forum) {
+        if(!empty($forum['forum_category'])){
+            if ($forum['forum_category'] == $forum_category['cat_id']) {
             // The forum has to be showed if
             // 1.v it is a not a group forum (teacher and student)
             // 2.v it is a group forum and it is public (teacher and student)
@@ -501,6 +503,7 @@ if ($action_forums != 'add') {
             }
             echo $html;
         }
+        }
     }
     if (count($forum_list) == 0) {
         echo '<div class="alert alert-warning">'.get_lang('NoForumInThisCategory').'</div>';

BIN
main/img/icons/22/forum_blue.png


BIN
main/img/icons/22/forum_yellow.png


BIN
main/img/icons/32/forum_group.png