MDL-31010 comments: setup_course should update if passed courseid is different from the cached one

This commit is contained in:
Ankit Agarwal
2012-10-11 10:58:13 +08:00
parent a8ce9071c2
commit 78a00990b6
+1 -1
View File
@@ -89,7 +89,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;
}