Minor - flint fixes

pull/2864/head
Julio 7 years ago
parent 4cb8f2e1b4
commit 48fcdbb6f0
  1. 2
      main/inc/lib/elfinder/connectorAction.php
  2. 2
      plugin/surveyexportcsv/export.php

@ -25,7 +25,7 @@ if (empty($driverList)) {
if ($block && !api_is_allowed_to_edit()) { if ($block && !api_is_allowed_to_edit()) {
foreach ($driverList as $driver) { foreach ($driverList as $driver) {
if ($driver === 'CourseDriver') { if ($driver === 'CourseDriver') {
continue; continue;
} }
$newDriverList[] = $driver; $newDriverList[] = $driver;
} }

@ -191,7 +191,7 @@ function otherRow($questions, $user, $courseId)
if ('open' === $question['type']) { if ('open' === $question['type']) {
$answer = getOpenAnswer($question['question_id'], $question['survey_id'], $courseId, $user); $answer = getOpenAnswer($question['question_id'], $question['survey_id'], $courseId, $user);
if ($answer){ if ($answer) {
$row[] = Security::remove_XSS($answer->getOptionId()); $row[] = Security::remove_XSS($answer->getOptionId());
} }
} else { } else {

Loading…
Cancel
Save