Merge branch 'w04_MDL-31176_m23_groupcontext' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2012-01-24 01:28:56 +01:00
commit 72efa49721

View File

@ -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) {