mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Whoops. Missed setting $totalcount var
This commit is contained in:
parent
616ad119ad
commit
806dab4385
@ -124,6 +124,7 @@
|
||||
|
||||
// run through blocks and get (unique) courses
|
||||
$courses = array();
|
||||
$totalcount = 0;
|
||||
foreach ($blocks as $block) {
|
||||
$courseid = $block->pageid;
|
||||
if ($courseid==0) {
|
||||
@ -133,6 +134,7 @@
|
||||
error( "Could not read data for courseid=$courseid" );
|
||||
}
|
||||
$courses[$courseid] = $course;
|
||||
$totalcount++;
|
||||
}
|
||||
}
|
||||
// get list of courses containing modules if required
|
||||
@ -144,6 +146,7 @@
|
||||
|
||||
// run through modules and get (unique) courses
|
||||
$courses = array();
|
||||
$totalcount = 0;
|
||||
foreach ($modules as $module) {
|
||||
$courseid = $module->course;
|
||||
if ($courseid==0) {
|
||||
@ -153,6 +156,7 @@
|
||||
error( "Could not read data for courseid=$courseid" );
|
||||
}
|
||||
$courses[$courseid] = $course;
|
||||
$totalcount++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user