Merge branch 'MDL-31010-master' of git://github.com/ankitagarwal/moodle

This commit is contained in:
Aparup Banerjee 2012-10-15 15:53:22 +08:00
commit 353d6457b7

View File

@ -94,7 +94,7 @@ class comment_manager {
*/
private function setup_course($courseid) {
global $PAGE, $DB;
if (!empty($this->course)) {
if (!empty($this->course) && $this->course->id == $courseid) {
// already set, stop
return;
}