diff --git a/main/coursecopy/classes/Course.class.php b/main/coursecopy/classes/Course.class.php index 0a66ea927d..9dc0eeeb39 100644 --- a/main/coursecopy/classes/Course.class.php +++ b/main/coursecopy/classes/Course.class.php @@ -1,4 +1,4 @@ -has_item($resource_to_check)) { diff --git a/main/coursecopy/classes/CourseSelectForm.class.php b/main/coursecopy/classes/CourseSelectForm.class.php index d15a7fdcfe..249138e5a9 100644 --- a/main/coursecopy/classes/CourseSelectForm.class.php +++ b/main/coursecopy/classes/CourseSelectForm.class.php @@ -1,5 +1,5 @@ '; + + CourseSelectForm :: display_hidden_quiz_questions($course); echo ''; echo '
'; } + + + function display_hidden_quiz_questions($course) + { + + foreach ($course->resources as $type => $resources) + { + if (count($resources) > 0) + { + switch ($type) + { + case RESOURCE_QUIZQUESTION: + foreach ($resources as $id => $resource) + { + echo ''; + } + break; + + } + } + } + } + + /** * Get the posted course * @return course The course-object with all resources selected by the user