From 9dbec1bb7acda06603b7e9c248073a45edcab3c0 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 9 Nov 2012 17:39:22 +0100 Subject: [PATCH] Minor - cosmetic changes --- main/inc/ajax/exercise.ajax.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/main/inc/ajax/exercise.ajax.php b/main/inc/ajax/exercise.ajax.php index 022350df7e..b9fc2c9270 100644 --- a/main/inc/ajax/exercise.ajax.php +++ b/main/inc/ajax/exercise.ajax.php @@ -70,7 +70,18 @@ switch ($action) { $start = 0; } - $sql = "SELECT exe_id, exe_user_id, firstname, lastname, aa.status, start_date, exe_result, exe_weighting, exe_result/exe_weighting as score, exe_duration, questions_to_check, orig_lp_id + $sql = "SELECT exe_id, + exe_user_id, + firstname, + lastname, + aa.status, + start_date, + exe_result, + exe_weighting, + exe_result/exe_weighting as score, + exe_duration, + questions_to_check, + orig_lp_id FROM $user_table u INNER JOIN ( SELECT t.exe_id, t.exe_user_id, status, @@ -85,7 +96,7 @@ switch ($action) { $result = Database::query($sql); $results = array(); - while ($row = Database::fetch_array($result,'ASSOC')){ + while ($row = Database::fetch_array($result, 'ASSOC')){ $results[] = $row; }