]> git.mjollnir.org Git - moodle.git/commitdiff
do not join "hotpot_attempts" and "hotpot_details" tables when displaying "hotpot...
authorgbateson <gbateson>
Sun, 1 Oct 2006 06:39:51 +0000 (06:39 +0000)
committergbateson <gbateson>
Sun, 1 Oct 2006 06:39:51 +0000 (06:39 +0000)
mod/hotpot/index.php

index 4ad23d6ec9054e742abaa3cdf45122f6638c25b3..c1eb4a6e8b2db649259218d9a9980a809a02d348 100644 (file)
         // restrict results to this user only
         $select .= " AND a.userid='$USER->id'";
     }
-    $usejoin = 1;
+    $usejoin = 0;
     if (has_capability('mod/hotpot:grade', get_context_instance(CONTEXT_SYSTEM, SITEID)) && $usejoin) {
         // join attempts table and details table
         $tables .= ",{$CFG->prefix}hotpot_details AS d";