]> git.mjollnir.org Git - moodle.git/commit
Fixes a bug with user events created by an activity module.
authorgustav_delius <gustav_delius>
Sun, 26 Dec 2004 13:58:07 +0000 (13:58 +0000)
committergustav_delius <gustav_delius>
Sun, 26 Dec 2004 13:58:07 +0000 (13:58 +0000)
commitb63c0ee52119419ee91950ad5afbf5c66a352bb2
tree87f242b6cf910a8212ae06f0092c8fb87ee734ec
parent6741221e34a8186c63e892e9a0ce94676f3a924c
Fixes a bug with user events created by an activity module.
The old code assumed that the courseid would always be set but that is only the case for course events, not for user or group events. (See http://moodle.org/mod/forum/discuss.php?d=4466#20827 for a discussion about the meaning of the courseid field in the event table)
I also made the $courseid argument to get_coursemodule_from_instance() optional. It is not needed and in some cases it will not be know, as for example for non-course events created by activity modules.
calendar/lib.php
lib/datalib.php