Minor: Flint fixes

pull/4050/head
Angel Fernando Quiroz Campos 4 years ago
parent e4b58b428b
commit d4db223f9f
  1. 2
      main/cron/import_csv.php
  2. 2
      main/inc/lib/exercise.lib.php
  3. 4
      main/lp/learnpath.class.php
  4. 2
      main/webservices/api/v2.php
  5. 1
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseBuilder.php

@ -1867,7 +1867,7 @@ class ImportCsv
'value' => $row['SkillsetID'], 'value' => $row['SkillsetID'],
]; ];
$extraFieldValues->save($params);*/ $extraFieldValues->save($params);*/
$skillSetList[$row['SkillsetID']][] = $skill->getId(); $skillSetList[$row['SkillsetID']][] = $skill->getId();
} }
//$courseRelSkills = []; //$courseRelSkills = [];

@ -2254,7 +2254,6 @@ HOTSPOT;
$status $status
); );
if (!empty($result)) { if (!empty($result)) {
foreach ($result as $attempt) { foreach ($result as $attempt) {
$data = [ $data = [
@ -2412,7 +2411,6 @@ HOTSPOT;
} }
$session_id_and = " AND te.session_id IN(".implode(',', $sessionIds).")"; $session_id_and = " AND te.session_id IN(".implode(',', $sessionIds).")";
$sessionCondition = " AND ttte.session_id IN(".implode(',', $sessionIds).")"; $sessionCondition = " AND ttte.session_id IN(".implode(',', $sessionIds).")";
} else { } else {
return false; return false;
} }

@ -4982,8 +4982,7 @@ class learnpath
} }
/** /**
* Update the last progress only in case * Update the last progress only in case.
*
*/ */
public function updateLpProgress() public function updateLpProgress()
{ {
@ -5023,7 +5022,6 @@ class learnpath
->hookLearningPathEnd(); ->hookLearningPathEnd();
} }
} }
} }
/** /**

@ -487,7 +487,7 @@ try {
$userId = isset($_POST['user_id']) ? (int) $_POST['user_id'] : 0; $userId = isset($_POST['user_id']) ? (int) $_POST['user_id'] : 0;
$currentApiKey = $_POST['current_api_key'] ?? ''; $currentApiKey = $_POST['current_api_key'] ?? '';
if (empty($userId) || empty($currentApiKey)) { if (empty($userId) || empty($currentApiKey)) {
throw new Exception(get_lang('NotAllowed')); throw new Exception(get_lang('NotAllowed'));
} }

@ -1572,7 +1572,6 @@ class CourseBuilder
*/ */
public function exportToCourseBuildFormat() public function exportToCourseBuildFormat()
{ {
if (empty($this->itemListToAdd)) { if (empty($this->itemListToAdd)) {
return false; return false;
} }

Loading…
Cancel
Save