Skip to content

Commit

Permalink
fix regression in event check
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Sep 19, 2024
1 parent 5caa4bb commit 3663801
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions classes/OCRestClient/ApiEventsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function getBySeries($series_id, $course_id)
if (empty($oc_event->publications[0]->attachments)) {
$media = [];

if (empty($oc_event->mediapackage)) {
if (!isset($s_event->mediapackage)) {
continue;
}

Expand Down Expand Up @@ -221,10 +221,6 @@ public function getBySeries($series_id, $course_id)
$media[] = $obj;
}

if (is_null($oc_event->publications[0]->media)) {
continue;
}

$oc_event->publications[0]->media = $media;

if (is_null($oc_event->publications[0]->attachments)) {
Expand Down

0 comments on commit 3663801

Please sign in to comment.