]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20578 forum_print_overview() performance: fix unnecessary ILIKE match to make...
authorashleyholman <ashleyholman>
Mon, 19 Oct 2009 00:18:23 +0000 (00:18 +0000)
committerashleyholman <ashleyholman>
Mon, 19 Oct 2009 00:18:23 +0000 (00:18 +0000)
mod/forum/lib.php

index 82463152cc3c92b6335abfee5b5d856804e39af4..b10bf0758945f756e79aa0702fe61f21b4acf9a0 100644 (file)
@@ -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;