Skip to content

Commit

Permalink
Merge pull request #470 from ncstate-delta/null-auto-record
Browse files Browse the repository at this point in the history
Set default for option_auto_record for older restores
  • Loading branch information
jrchamp authored Mar 16, 2023
2 parents 4400334 + 1b98f3f commit 869f5e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions backup/moodle2/restore_zoom_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ protected function process_zoom($data) {
$data->join_url = '';
$data->meeting_id = 0;
$data->exists_on_zoom = ZOOM_MEETING_EXPIRED;
$data->option_auto_recording = 'none';
}

$data->course = $this->get_courseid();
Expand Down
3 changes: 3 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ function populate_zoom_from_response(stdClass $zoom, stdClass $response) {
if (isset($response->settings->auto_recording)) {
$newzoom->option_auto_recording = $response->settings->auto_recording;
}
if (!isset($newzoom->option_auto_recording)) {
$newzoom->option_auto_recording = 'none';
}

return $newzoom;
}
Expand Down

0 comments on commit 869f5e0

Please sign in to comment.