Remove "news" and "social" forums from learning forums.

This commit is contained in:
moodler
2002-10-25 14:46:42 +00:00
parent 690b1941fc
commit 86c5e69a36
+7
View File
@@ -103,6 +103,13 @@
array_unshift($table->align, "CENTER");
if ($learningforums = get_all_instances_in_course("forum", $course->id)) {
foreach ($learningforums as $key => $forum) {
if ($forum->type == "news" or $forum->type == "social") {
unset($learningforums[$key]); // Remove these
}
}
}
if ($learningforums) {
foreach ($learningforums as $forum) {
$count = count_records("forum_discussions", "forum", "$forum->id");