Merge branch 'MDL-58264' of https://github.com/darrencocco/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 28 Mar 2017 17:02:40 +0000 (18:02 +0100)
committerDan Poltawski <dan@moodle.com>
Tue, 28 Mar 2017 17:02:40 +0000 (18:02 +0100)
mod/quiz/locallib.php

index add6361..82a3fa8 100644 (file)
@@ -1935,7 +1935,7 @@ class qubaids_for_quiz extends qubaid_join {
         }
 
         if ($onlyfinished) {
-            $where .= ' AND state == :statefinished';
+            $where .= ' AND state = :statefinished';
             $params['statefinished'] = quiz_attempt::FINISHED;
         }