From 988ecd1e2e408d20a23d7a658ebd5712bb89cbce Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 1 Sep 2021 09:58:25 -0500 Subject: [PATCH] Exercise: Fix spaces between ? and : - refs BT19079 --- main/lp/learnpathItem.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/lp/learnpathItem.class.php b/main/lp/learnpathItem.class.php index 4c688657dc..a1997c97a7 100755 --- a/main/lp/learnpathItem.class.php +++ b/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. if ($returnstatus) { $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 FROM '.Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES).' WHERE