Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 53a810db85100056fa482d5fbbec835bac4cef59 1 parent 6290332
ashleyholman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/forum/lib.php
View
2  mod/forum/lib.php
@@ -1040,7 +1040,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 != ".$USER->id." GROUP BY cmid,l.course,instance";
if (!$new = get_records_sql($sql)) {
Please sign in to comment.
Something went wrong with that request. Please try again.