commit fdc93e1efef15081869eb5d3cf4add62ea60918c Author: Ashley Holman Date: Thu Oct 15 17:43:42 2009 +1030 fix slow performance of forum_print_overview() which slowed MyMoodle. diff --git a/mod/forum/lib.php b/mod/forum/lib.php index e036872..8819005 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1037,7 +1037,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)) {