]> git.mjollnir.org Git - moodle.git/commitdiff
fixed incorrectly quoted $LIKE in forum recent activity sql
authorskodak <skodak>
Wed, 27 Sep 2006 10:44:25 +0000 (10:44 +0000)
committerskodak <skodak>
Wed, 27 Sep 2006 10:44:25 +0000 (10:44 +0000)
mod/forum/lib.php

index 1bc243216a6556a959734007084ba5f4016a9ea7..69d385734ea80383490c3eefbd826ad55f6043d3 100644 (file)
@@ -865,7 +865,7 @@ function forum_print_recent_activity($course, $isteacher, $timestart) {
     if (!$logs = get_records_select('log', 'time > \''.$timestart.'\' AND '.
                                            'course = \''.$course->id.'\' AND '.
                                            'module = \'forum\' AND '.
-                                           'action $LIKE \'add %\' ', 'time ASC')){
+                                           'action '.$LIKE.' \'add %\' ', 'time ASC')){
         return false;
     }