Skip to content
Permalink
Browse files

Fixing the other half of bug 3334.

  • Loading branch information...
defacer
defacer committed May 25, 2005
1 parent 101415b commit 14b7da15274cb8467cf968097714d049808ee822
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/attempts.php
@@ -232,7 +232,7 @@
// Construct the SQL
$select = 'SELECT qa.id AS attempt, u.id AS userid, u.firstname, u.lastname, u.picture, '.
$select = 'SELECT '.$db->Concat('u.id', '\'#\'', $db->IfNull('qa.attempt', '0')).' AS uniqueid, qa.id AS attempt, u.id AS userid, u.firstname, u.lastname, u.picture, '.
'qa.sumgrades, qa.timefinish, qa.timestart, qa.timefinish - qa.timestart AS duration ';
$from = 'FROM mdl_user u LEFT JOIN mdl_quiz_attempts qa ON u.id = qa.userid ';
$where = 'WHERE u.id IN ('.implode(',', array_keys($users)).') AND ('.($noattempts ? sql_isnull('qa.quiz').' OR ' : '') . 'qa.quiz = '.$quiz->id.') ';

0 comments on commit 14b7da1

Please sign in to comment.
You can’t perform that action at this time.