@ -28,7 +28,7 @@ class Diagnoser
public function show_html()
{
$sections = array('chamilo', 'php', 'database', 'webserver');
$currentSection = isset($_GET['section']) ? $_GET['section'] : '';
if (!in_array(trim($currentSection), $sections)) {
$currentSection = 'chamilo';
}
@ -234,8 +234,7 @@ if (isset($_POST['formSent'])) {
if (!empty($courses) && $cvs) {
$courses = api_substr($courses, 0, api_strlen($courses) - 1);
$add .= $courses;
$add = $courses;
if (in_array($file_type, ['csv', 'xls'])) {
$sessionListToExport[] = [