From: gbateson Date: Sun, 1 Oct 2006 06:39:51 +0000 (+0000) Subject: do not join "hotpot_attempts" and "hotpot_details" tables when displaying "hotpot... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=42cd7a105b8e9e66485db2ffb72ebc83d196439a;p=moodle.git do not join "hotpot_attempts" and "hotpot_details" tables when displaying "hotpot/index.php". This should speed display when courses have many HotPot activities, especially for students --- diff --git a/mod/hotpot/index.php b/mod/hotpot/index.php index 4ad23d6ec9..c1eb4a6e8b 100644 --- a/mod/hotpot/index.php +++ b/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";