From 9b99a1ad39b7313426346a62d6a8609e0fc40900 Mon Sep 17 00:00:00 2001 From: Julio Date: Thu, 7 Jul 2016 15:34:37 +0200 Subject: [PATCH] Minor - fix php warnings --- main/inc/lib/diagnoser.lib.php | 2 +- main/session/session_export.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/diagnoser.lib.php b/main/inc/lib/diagnoser.lib.php index 1562cd7990..c22fde8381 100755 --- a/main/inc/lib/diagnoser.lib.php +++ b/main/inc/lib/diagnoser.lib.php @@ -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'; } diff --git a/main/session/session_export.php b/main/session/session_export.php index 3bb5df0c24..e02bb71ea2 100644 --- a/main/session/session_export.php +++ b/main/session/session_export.php @@ -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[] = [