Permalink
Browse files

do not join "hotpot_attempts" and "hotpot_details" tables when displa…

…ying "hotpot/index.php". This should speed display when courses have many HotPot activities, especially for students
  • Loading branch information...
1 parent 0351730 commit 42cd7a105b8e9e66485db2ffb72ebc83d196439a gbateson committed Oct 1, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/hotpot/index.php
View
2 mod/hotpot/index.php
@@ -241,7 +241,7 @@
// 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";

0 comments on commit 42cd7a1

Please sign in to comment.