Skip to content

Commit

Permalink
MDL-31176 add missing global $DB when looking for group related conte…
Browse files Browse the repository at this point in the history
…xt in calendar
  • Loading branch information
skodak committed Jan 21, 2012
1 parent 269c884 commit ec6c7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calendar/lib.php
Expand Up @@ -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) {
Expand Down

0 comments on commit ec6c7d9

Please sign in to comment.