]> git.mjollnir.org Git - moodle.git/commitdiff
merged fix for MDL-9268
authortoyomoyo <toyomoyo>
Tue, 10 Apr 2007 04:26:00 +0000 (04:26 +0000)
committertoyomoyo <toyomoyo>
Tue, 10 Apr 2007 04:26:00 +0000 (04:26 +0000)
blog/index.php

index 1120a0cc9af2528b8daca40bd25ef8e0b5b0278a..aeea0c71dfa32ccdff8d5714093f455334acae43 100755 (executable)
@@ -84,7 +84,9 @@ switch ($filtertype) {
         if ($CFG->bloglevel < BLOG_GROUP_LEVEL) {
             error('Group blogs is not enabled');
         }
-        if (! $group = groups_get_group($groupid)) { //TODO:check.
+        
+        // fix for MDL-9268
+        if (! $group = groups_get_group($filterselect)) { //TODO:check.
             error('Incorrect group id specified');
         }
         if (!$course = get_record('course', 'id', $group->courseid)) {