Permalink
Browse files

MDL-31176 add missing global $DB when looking for group related conte…

…xt in calendar
  • Loading branch information...
1 parent 1aff7bb commit 5b67cd5ec86ddaf651bff155eb6606ff973b4b27 @skodak skodak committed Jan 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 calendar/lib.php
View
2 calendar/lib.php
@@ -1796,7 +1796,7 @@ public function __isset($key) {
* @return stdClass
*/
protected function calculate_context(stdClass $data) {
- global $USER;
+ global $USER, $DB;
$context = null;
if (isset($data->courseid) && $data->courseid > 0) {

0 comments on commit 5b67cd5

Please sign in to comment.