Skip to content

Commit 3663801

Browse files
committed
fix regression in event check
1 parent 5caa4bb commit 3663801

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

classes/OCRestClient/ApiEventsClient.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function getBySeries($series_id, $course_id)
190190
if (empty($oc_event->publications[0]->attachments)) {
191191
$media = [];
192192

193-
if (empty($oc_event->mediapackage)) {
193+
if (!isset($s_event->mediapackage)) {
194194
continue;
195195
}
196196

@@ -221,10 +221,6 @@ public function getBySeries($series_id, $course_id)
221221
$media[] = $obj;
222222
}
223223

224-
if (is_null($oc_event->publications[0]->media)) {
225-
continue;
226-
}
227-
228224
$oc_event->publications[0]->media = $media;
229225

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

0 commit comments

Comments
 (0)