Bläddra i källkod

Minor - fix php warnings

Julio 8 år sedan
förälder
incheckning
9b99a1ad39
2 ändrade filer med 2 tillägg och 3 borttagningar
  1. 1 1
      main/inc/lib/diagnoser.lib.php
  2. 1 2
      main/session/session_export.php

+ 1 - 1
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';
         }

+ 1 - 2
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[] = [