Merged PHP5 fix for bug 2073 from STABLE

This commit is contained in:
moodler
2004-10-15 09:54:04 +00:00
parent 97bcc61f03
commit 08684ee95c
+2
View File
@@ -144,6 +144,7 @@
foreach ($sections as $section) {
if ($i <= $course->numsections) {
$activity = new Object;
$activity->type = "section";
if ($i) {
$activity->name = $sectiontitle . " $i";
@@ -194,6 +195,7 @@
$get_recent_mod_activity = $coursemod->name."_get_recent_mod_activity";
if (function_exists($get_recent_mod_activity)) {
$activity = new Object;
$activity->type = "activity";
$activity->name = $instance->name;
$activity->visible = $coursemod->visible;