Permalink
Browse files

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

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

Please sign in to comment.