Exercise: Fix spaces between ? and : - refs BT19079

pull/3957/head
Christian 4 years ago
parent 8c44368bcd
commit 988ecd1e2e
  1. 2
      main/lp/learnpathItem.class.php

@ -2355,7 +2355,7 @@ class learnpathItem
// 2. If is completed we check the results in the DB of the quiz. // 2. If is completed we check the results in the DB of the quiz.
if ($returnstatus) { if ($returnstatus) {
$checkLastScoreAttempt = api_get_configuration_value('lp_prerequisite_use_last_attempt_only'); $checkLastScoreAttempt = api_get_configuration_value('lp_prerequisite_use_last_attempt_only');
$orderBy = ($checkLastScoreAttempt?'ORDER BY exe_date DESC':'ORDER BY (exe_result/exe_weighting) DESC'); $orderBy = ($checkLastScoreAttempt ? 'ORDER BY exe_date DESC' : 'ORDER BY (exe_result/exe_weighting) DESC');
$sql = 'SELECT exe_result, exe_weighting $sql = 'SELECT exe_result, exe_weighting
FROM '.Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES).' FROM '.Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES).'
WHERE WHERE

Loading…
Cancel
Save