Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f6b4ec2
)
MDL-31176 add missing global $DB when looking for group related context in calendar
author
Petr Skoda
<commits@skodak.org>
Sat, 21 Jan 2012 18:57:01 +0000
(19:57 +0100)
committer
Petr Skoda
<commits@skodak.org>
Sat, 21 Jan 2012 18:57:01 +0000
(19:57 +0100)
calendar/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/calendar/lib.php
b/calendar/lib.php
index
8b9e480
..
046c0a9
100644
(file)
--- a/
calendar/lib.php
+++ b/
calendar/lib.php
@@
-1796,7
+1796,7
@@
class calendar_event {
* @return stdClass
*/
protected function calculate_context(stdClass $data) {
- global $USER;
+ global $USER
, $DB
;
$context = null;
if (isset($data->courseid) && $data->courseid > 0) {