mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
Dont print learning forums table if there aren't any
This commit is contained in:
parent
36c23cd6a9
commit
1390f203a7
@ -85,7 +85,7 @@
|
||||
if ($learningforums) {
|
||||
$currentsection = "";
|
||||
|
||||
foreach ($learningforums as $forum) {
|
||||
foreach ($learningforums as $key => $forum) {
|
||||
$count = count_records("forum_discussions", "forum", "$forum->id");
|
||||
|
||||
$forum->intro = forum_shorten_post($forum->intro);
|
||||
@ -94,6 +94,7 @@
|
||||
|
||||
if (!$forum->section) { // forums in the "0" section => generaltable
|
||||
$generalforums[] = $forum;
|
||||
unset($learningforums[$key]);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user