Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…different from the cached one
  • Loading branch information...
commit 78a00990b67d4735811c827dea68d95b3e09dbb0 1 parent a8ce907
Ankit Agarwal ankitagarwal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  comment/locallib.php
2  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.