Parcourir la source

Removing \"strict\" validation

Julio Montoya il y a 15 ans
Parent
commit
b3c354ba14
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      main/forum/index.php

+ 4 - 3
main/forum/index.php

@@ -143,8 +143,9 @@ if (isset($_GET['action']) && $_GET['action'] == 'notify' AND isset($_GET['conte
 	$forum_categories_list=get_forum_categories();
 
 	// step 2: we find all the forums (only the visible ones if it is a student)
-	$forum_list=array();
-	$forum_list=get_forums();
+	$forum_list	= array();
+	$forum_list	= get_forums();
+	
 
 	/*
 			RETRIEVING ALL GROUPS AND THOSE OF THE USER
@@ -252,7 +253,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'notify' AND isset($_GET['conte
 				}
 
 				// note: this can be speeded up if we transform the $forum_list to an array that uses the forum_category as the key.
-				if (prepare4display($forum['forum_category'])==prepare4display($forum_category['cat_id'])) {
+				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)