Permalink
Browse files

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

…different from the cached one
  • Loading branch information...
1 parent ccd90e7 commit b512b9dee2748f29bc704eca5d9f62b63ecb025a @ankitagarwal ankitagarwal committed Oct 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 comment/locallib.php
View
@@ -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 b512b9d

Please sign in to comment.