diff --git a/main/gradebook/gradebook_display_certificate.php b/main/gradebook/gradebook_display_certificate.php index 80d7721c8d..d7db64a674 100755 --- a/main/gradebook/gradebook_display_certificate.php +++ b/main/gradebook/gradebook_display_certificate.php @@ -1,11 +1,7 @@ validate()) { $officialCode = $form->getSubmitValue('filter'); - if ($officialCode == 'all') { + if ($officialCode === 'all') { $certificate_list = GradebookUtils::get_list_users_certificates($categoryId); } else { $userList = UserManager::getUsersByOfficialCode($officialCode); @@ -77,10 +73,8 @@ if ($filter === 'true') { } $content = ''; - $courseCode = api_get_course_id(); - -$allowExportToZip = api_get_plugin_setting('customcertificate', 'enable_plugin_customcertificate') == 'true' && +$allowExportToZip = api_get_plugin_setting('customcertificate', 'enable_plugin_customcertificate') === 'true' && api_get_course_setting('customcertificate_course_enable', $courseInfo) == 1; $tags = Certificate::notificationTags(); @@ -189,7 +183,7 @@ $interbreadcrumb[] = ['url' => '#', 'name' => get_lang('GradebookListOfStudentsC $this_section = SECTION_COURSES; Display::display_header(''); -if (isset($_GET['action']) && $_GET['action'] == 'delete') { +if ($action === 'delete') { $check = Security::check_token('get'); if ($check) { $certificate = new Certificate($_GET['certificate_id']); @@ -293,7 +287,6 @@ if (count($certificate_list) > 0 && $hideCertificateExport !== 'true') { } echo Display::toolbarAction('actions', [$actions]); - echo $filterForm; if (count($certificate_list) == 0) { diff --git a/main/gradebook/lib/be/category.class.php b/main/gradebook/lib/be/category.class.php index 9799e98f41..ae1d6d06df 100755 --- a/main/gradebook/lib/be/category.class.php +++ b/main/gradebook/lib/be/category.class.php @@ -1,4 +1,5 @@ - cleaning and update for new SCORM tool - * - * @package chamilo.learnpath */ $this_section = SECTION_COURSES;