]> git.mjollnir.org Git - moodle.git/commitdiff
Add missing $DB
authorstronk7 <stronk7>
Thu, 28 Aug 2008 18:04:16 +0000 (18:04 +0000)
committerstronk7 <stronk7>
Thu, 28 Aug 2008 18:04:16 +0000 (18:04 +0000)
mod/forum/lib.php

index 0f25dfc7c2e073141c28e0a3f2ede29d0aadffaf..2c2360365bb9dab49a89f33ad1ff91bf6e99de44 100644 (file)
@@ -1118,7 +1118,8 @@ function pre_load_all_ratings(&$cm, $discussion) {
  *
  */
 function forum_print_overview($courses,&$htmlarray) {
-    global $USER, $CFG;
+    global $USER, $CFG, $DB;
+
     $LIKE = $DB->sql_ilike();
 
     if (empty($courses) || !is_array($courses) || count($courses) == 0) {