From: ashleyholman Date: Mon, 19 Oct 2009 00:18:23 +0000 (+0000) Subject: MDL-20578 forum_print_overview() performance: fix unnecessary ILIKE match to make... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b55d0869e9b36280d20ba9c720a06c7a41fbfaba;p=moodle.git MDL-20578 forum_print_overview() performance: fix unnecessary ILIKE match to make better use of log_coumodact_ix index --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 82463152cc..b10bf07589 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1203,7 +1203,7 @@ function forum_print_overview($courses,&$htmlarray) { } $sql = substr($sql,0,-3); // take off the last OR - $sql .= ") AND l.module = 'forum' AND action $LIKE 'add post%' " + $sql .= ") AND l.module = 'forum' AND action = 'add post' " ." AND userid != ? GROUP BY cmid,l.course,instance"; $params[] = $USER->id;