Skip to content
Browse files

MDL-25981 add missing global DB when fetching course modinfo

  • Loading branch information...
1 parent d4fb0e2 commit d6f4508c36e9bc29b2934142b039688ca2dba33c @skodak skodak committed Jan 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/modinfolib.php
View
2 lib/modinfolib.php
@@ -197,7 +197,7 @@ public function get_groups($groupingid=0) {
* @param int $userid User ID
*/
public function __construct($course, $userid) {
- global $CFG;
+ global $CFG, $DB;
// Set initial values
$this->courseid = $course->id;

0 comments on commit d6f4508

Please sign in to comment.
Something went wrong with that request. Please try again.