Browse Source

Fixed bug in forum with the social network, when there are more than six forums, the shared profile not show the forums - partial CT#493

Cristian Fasanando 15 years ago
parent
commit
7c9a6be041
1 changed files with 9 additions and 9 deletions
  1. 9 9
      main/forum/forumfunction.inc.php

+ 9 - 9
main/forum/forumfunction.inc.php

@@ -3961,16 +3961,16 @@ function get_thread_user_post($course_db, $thread_id, $user_id )
 			 			$hand_forums.= '</div>';
 		 			}
 		 			$i++;					
-	 			}	 			
-	 			if ($post_counter > 0 ) {
-					$forum_results .='<div id="social-forum">';
-	 				$forum_results .='<div class="clear"></div><br />';
-	 				$forum_results .='<div class="actions" style="margin-left:5px;margin-right:5px;">'.Display::return_icon('forum.gif',get_lang('Forum')).'&nbsp;'.$forum['forum_title'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div style="float:right;margin-top:-18px"><a href="../forum/viewforum.php?cidReq='.$my_course_code.'&gidReq=&forum='.$forum['forum_id'].' " >'.get_lang('SeeForum').'</a></div></div>';
-	 				$forum_results .='<br / >';
+	 			}	 				 			
+				$forum_results .='<div id="social-forum">';
+ 				$forum_results .='<div class="clear"></div><br />';
+ 				$forum_results .='<div class="actions" style="margin-left:5px;margin-right:5px;">'.Display::return_icon('forum.gif',get_lang('Forum')).'&nbsp;'.$forum['forum_title'].'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div style="float:right;margin-top:-18px"><a href="../forum/viewforum.php?cidReq='.$my_course_code.'&gidReq=&forum='.$forum['forum_id'].' " >'.get_lang('SeeForum').'</a></div></div>';
+ 				$forum_results .='<br / >';
+ 				if ($post_counter > 0 ) {
 					$forum_results .=$hand_forums;
-					$forum_results .='</div>';
-				}
- 			} $j++;
+ 				}
+				$forum_results .='</div>';				
+ 			}$j++;
  		}
  	}
  	return $forum_results;