Permalink
Browse files

MDL-31010 comments: setup_course should update if passed courseid is …

…different from the cached one
  • Loading branch information...
1 parent 562dbe4 commit 437637a11d046438e184cda92c3a88c60eb40a45 @ankitagarwal ankitagarwal committed Oct 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 comment/locallib.php
View
2 comment/locallib.php
@@ -94,7 +94,7 @@ function get_comments($page) {
*/
private function setup_course($courseid) {
global $PAGE, $DB;
- if (!empty($this->course)) {
+ if (!empty($this->course) && $this->course->id == $courseid) {
// already set, stop
return;
}

0 comments on commit 437637a

Please sign in to comment.