Skip to content

Commit

Permalink
refs #1007
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Sep 18, 2024
1 parent e72d8e7 commit c53d7b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions OpenCast.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions views/course/_episode.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ class="<?= (empty($item['visibility']) || $item['visibility'] != 'false') ? 'oce
<? $plugin = PluginEngine::getPlugin('OpenCast'); ?>
<? if ($item['is_retracting']) : ?>
<span class="previewimage">
<img class="previewimage <?= (empty($item['visibility']) || $item['visibility'] == 'false') ? 'ocinvisible' : '' ?>"
<img class="previewimage <?= (!empty($item['visibility']) && $item['visibility'] == 'false') ? 'ocinvisible' : '' ?>"
src="<?= $controller->url_for('redirect/preview/'. $item['id']) ?>" height="200"
style="filter: grayscale(100%);">
</img>
</span>
<? else: ?>
<a href="<?=str_replace('%%%video_id%%%', $item['id'], $video_url) ?>" target="_blank">
<span class="previewimage">
<img class="previewimage <?= (empty($item['visibility']) || $item['visibility'] == 'false') ? 'ocinvisible' : '' ?>"
<img class="previewimage <?= (!empty($item['visibility']) && $item['visibility'] == 'false') ? 'ocinvisible' : '' ?>"
src="<?= $controller->url_for('redirect/preview/'. $item['id']) ?>" height="200">
</img>

Expand Down

0 comments on commit c53d7b1

Please sign in to comment.