Skip to content
Browse files

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

…xt in calendar
  • Loading branch information...
1 parent 269c884 commit ec6c7d98f932e89f6c7cc6f77413f1d27cc8c6ce @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 ec6c7d9

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