Skip to content
Snippets Groups Projects
Commit 8815f445 authored by Roger W Feese's avatar Roger W Feese
Browse files

Add check for whether a current version of the course was found. This will...

Add check for whether a current version of the course was found. This will skip courses where there is no currentGeneration, which may occur due to other application errors.
parent 8f2dd1ea
No related branches found
No related tags found
1 merge request!21Projects Task 24
......@@ -163,6 +163,11 @@ class Iace_ReportsController extends Creq_Controller_Action
foreach ($courses as $requestId => $course) {
$currentCourse = $currentCourses[$course->getCourseId()];
//skip if no current version of the course was found
if(!isset($currentCourse)){
continue;
}
//skip course if it has been removed
if($currentCourse->getRemoved()){
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment