I have upgraded from 1.2 dev to 1.3 final and went smoothly for the most part. However, in the classes when clicking on 'Participants' the page shows normally but without the list of students. The following error appears at the top:
Warning: Invalid argument supplied for foreach() in c:\program files\easyphp\www\user\index.php on line 190
Warning: Invalid argument supplied for foreach() in c:\program files\easyphp\www\user\index.php on line 212
The code referred to is this:
line 190 :
foreach ($students as $key => $student) {
$students[$key]->country = $countries[$student->country];
}
if ($sort == "country") { // Need to re-sort by full country name, not code
foreach ($students as $student) {
$sstudents[$student->id] = $student->country;
}
asort($sstudents);
foreach ($sstudents as $key => $value) {
$nstudents[] = $students[$key];
}
$students = $nstudents;
}
line 212:
foreach ($students as $student) {
if ($student->lastaccess) {
$lastaccess = format_time(time() - $student->lastaccess, $datestring);
} else {
$lastaccess = $strnever;
}
According to the top of the page, my 65 students are there, just not displayed.
Also, the instructor has been removed from the class and Cannot add any instructors to the course!
Any Ideas? Thanx, Kevin