Skip to content

Commit c299967

Browse files
committed
webservice: warn if recording_count does not exist
1 parent a08e669 commit c299967

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

classes/webservice.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,10 @@ public function get_recording_url_list($meetingid) {
11441144
}
11451145

11461146
if (empty($response->recording_files)) {
1147+
if (!isset($response->recording_count)) {
1148+
throw new bad_request_exception('recording_count: undefined', 400);
1149+
}
1150+
11471151
$recordingcount = (int) $response->recording_count;
11481152
$audiocount = count($response->participant_audio_files);
11491153
if ($recordingcount !== $audiocount) {

0 commit comments

Comments
 (0)