diff --git a/mod/feedback/classes/output/responses_action_bar.php b/mod/feedback/classes/output/responses_action_bar.php index 0505a31869b..8afdb845c3b 100644 --- a/mod/feedback/classes/output/responses_action_bar.php +++ b/mod/feedback/classes/output/responses_action_bar.php @@ -54,7 +54,7 @@ class responses_action_bar extends base_action_bar { $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;;