Skip to content

Commit

Permalink
Merge pull request #254 from ferishili/issue_253
Browse files Browse the repository at this point in the history
PHP Waring on recording count, fixes #253
  • Loading branch information
ferishili authored Apr 21, 2021
2 parents d1032a6 + 729c7a6 commit 87d1eb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Routes/Rooms/RoomsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public function __invoke(Request $request, Response $response, $args)
'giveAccessToRecordings'
), FILTER_VALIDATE_BOOLEAN))
) {
if ((count($driver->getRecordings($meetingCourse->meeting->getMeetingParameters())) > 0)
$recordings = $driver->getRecordings($meetingCourse->meeting->getMeetingParameters());
if (!empty($recordings)
|| ($this->getFeatures($meeting['features'], 'meta_opencast-dc-isPartOf') && !empty(MeetingPlugin::checkOpenCast($meetingCourse->course_id)) &&
$this->getFeatures($meeting['features'], 'meta_opencast-dc-isPartOf') == MeetingPlugin::checkOpenCast($meetingCourse->course_id)))
{
Expand Down

0 comments on commit 87d1eb7

Please sign in to comment.