Browse files

MDL-20578 forum_print_overview() performance: fix unnecessary ILIKE m…

…atch to make better use of log_coumodact_ix index
  • Loading branch information...
1 parent ac83a8f commit b55d0869e9b36280d20ba9c720a06c7a41fbfaba ashleyholman committed Oct 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 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;

0 comments on commit b55d086

Please sign in to comment.