diff --git a/course/classes/management_renderer.php b/course/classes/management_renderer.php index 6ed18dd0bb97c..40c79d56ad0df 100644 --- a/course/classes/management_renderer.php +++ b/course/classes/management_renderer.php @@ -1213,21 +1213,18 @@ public function search_listitem_actions(course_in_list $course) { } // Show/Hide. if ($course->can_change_visibility()) { - if ($course->visible) { $actions[] = $this->output->action_icon( new moodle_url($baseurl, array('action' => 'hidecourse')), new pix_icon('t/show', get_string('hide')), null, array('data-action' => 'hide', 'class' => 'action-hide') ); - } else { $actions[] = $this->output->action_icon( new moodle_url($baseurl, array('action' => 'showcourse')), new pix_icon('t/hide', get_string('show')), null, array('data-action' => 'show', 'class' => 'action-show') ); - } } } if (empty($actions)) {