소스 검색

Minor - fix php warnings

Julio 8 년 전
부모
커밋
9b99a1ad39
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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[] = [