Skip to content

Commit

Permalink
Merge pull request #620 from ncstate-delta/fix/recording-type-null-fa…
Browse files Browse the repository at this point in the history
…llback

webservice: use string 'null' when recording_type is null
  • Loading branch information
jrchamp authored Sep 26, 2024
2 parents 8dc452f + 03c7c3b commit fab6dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ public function get_recording_url_list($meetingid) {
$recordinginfo->meetinguuid = $response->uuid;
$recordinginfo->url = $url;
$recordinginfo->filetype = $recording->file_type;
$recordinginfo->recordingtype = $recording->recording_type;
$recordinginfo->recordingtype = $recording->recording_type ?? 'null';
$recordinginfo->passcode = $response->password;
$recordinginfo->recordingstart = strtotime($recording->recording_start);

Expand Down Expand Up @@ -1120,7 +1120,7 @@ public function get_user_recordings($userid, $from, $to) {
$recordinginfo->meetinguuid = $meeting->uuid;
$recordinginfo->url = $url;
$recordinginfo->filetype = $recording->file_type;
$recordinginfo->recordingtype = $recording->recording_type;
$recordinginfo->recordingtype = $recording->recording_type ?? 'null';
$recordinginfo->recordingstart = strtotime($recording->recording_start);

$recordings[$recording->id] = $recordinginfo;
Expand Down

0 comments on commit fab6dd0

Please sign in to comment.