Minor - fix php warnings

remotes/angel/1.11.x
Julio 9 years ago
parent f53c7bdb4f
commit 9b99a1ad39
  1. 2
      main/inc/lib/diagnoser.lib.php
  2. 3
      main/session/session_export.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';
}

@ -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[] = [

Loading…
Cancel
Save