mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-31010-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
353d6457b7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user