Skip to content

Commit

Permalink
MDL-82289 mod_feedback: correct comparison of current $course.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Jun 25, 2024
1 parent ad7fc69 commit af8b9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/feedback/classes/output/responses_action_bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function get_items(): array {
$options[$reporturl->out(false)] = get_string('show_entries', 'feedback');
$selected = $this->currenturl->compare($reporturl, URL_MATCH_BASE) ? $reporturl : $this->currenturl;

if ($this->feedback->anonymous == FEEDBACK_ANONYMOUS_NO && $this->course != SITEID) {
if ($this->feedback->anonymous == FEEDBACK_ANONYMOUS_NO && $this->course->id != SITEID) {
$nonrespondenturl = new moodle_url('/mod/feedback/show_nonrespondents.php', $this->urlparams);
$options[$nonrespondenturl->out(false)] = get_string('show_nonrespondents', 'feedback');
$selected = $this->currenturl->compare($nonrespondenturl, URL_MATCH_BASE) ? $nonrespondenturl : $this->currenturl;;
Expand Down

0 comments on commit af8b9c5

Please sign in to comment.