diff --git a/main/gradebook/index.php b/main/gradebook/index.php index 2eccb13263..0e96217562 100755 --- a/main/gradebook/index.php +++ b/main/gradebook/index.php @@ -113,41 +113,6 @@ if (isset($_GET['isStudentView'])) { } } -if ($selectCat > 0 && (isset($_SESSION['studentview']) && $_SESSION['studentview']=='true')) { - -} else { - if (empty($selectCat) && ( - $_SESSION['studentview']=='studentview') || (isset($_GET['isStudentView']) && $_GET['isStudentView']=='true') - ) { - Display :: display_header(get_lang('Gradebook')); - - //Introduction tool: student view - Display::display_introduction_section( - TOOL_GRADEBOOK, - array('ToolbarSet' => 'AssessmentsIntroduction') - ); - $addparams = array(); - $cats = Category:: load(0, null, null, null, null, null, false); - $allcat = $cats[0]->get_subcategories( - $stud_id, - $course_code, - $session_id - ); - $alleval = $cats[0]->get_evaluations($stud_id); - $alllink = $cats[0]->get_links($stud_id); - $gradebooktable = new GradebookTable( - $cats[0], - $allcat, - $alleval, - $alllink, - $addparams - ); - $gradebooktable->display(); - Display:: display_footer(); - exit; - } -} - // ACTIONS //this is called when there is no data for the course admin if (isset($_GET['createallcategories'])) { diff --git a/main/gradebook/lib/fe/displaygradebook.php b/main/gradebook/lib/fe/displaygradebook.php index 1426b6f253..f1579d452b 100755 --- a/main/gradebook/lib/fe/displaygradebook.php +++ b/main/gradebook/lib/fe/displaygradebook.php @@ -233,6 +233,7 @@ class DisplayGradebook // Student. $status = CourseManager::getUserInCourseStatus($userId, $courseId); + $sessionStatus = 0; if (!empty($sessionId)) { $sessionStatus = SessionManager::get_user_status_in_course_session(