From c53d7b1895ee300b8befad2d1020d159b5c33180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20Gl=C3=B6ggler?= Date: Wed, 18 Sep 2024 18:06:46 +0200 Subject: [PATCH] refs #1007 --- OpenCast.class.php | 4 ++-- views/course/_episode.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenCast.class.php b/OpenCast.class.php index 677568f5..01ec6279 100644 --- a/OpenCast.class.php +++ b/OpenCast.class.php @@ -229,7 +229,7 @@ public function getTabNavigation($course_id) $title = 'Opencast'; $isActive = false; - if (empty($visibility['visibility']) || $visibility['visibility'] === 'invisible') { + if (!empty($visibility['visibility']) && $visibility['visibility'] === 'invisible') { $title .= " (" . $this->_('versteckt') . ")"; } $main = new Navigation($title); @@ -312,7 +312,7 @@ public function NotifyUserOnNewEpisode($x, $data) $ocmodel = new OCCourseModel($data['course_id']); if ($ocmodel->getSeriesVisibility() == 'visible' && !empty($data['episode_id']) - && (!empty($data['visibility']) && $data['visibility'] !== 'invisible') + && (empty($data['visibility']) || $data['visibility'] !== 'invisible') ) { $course = Course::find($data['course_id']); $members = $course->members; diff --git a/views/course/_episode.php b/views/course/_episode.php index 859c2d76..c42f3e44 100644 --- a/views/course/_episode.php +++ b/views/course/_episode.php @@ -81,7 +81,7 @@ class=" - @@ -89,7 +89,7 @@ class=" -