Skip to content

Commit

Permalink
bugfix undefined property error, refs Opencast-Moodle#187
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Jan 25, 2022
1 parent b5ce024 commit b3794f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/local/addvideo_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,7 @@ protected function get_scheduled_change_visibility_waiting_time($ocinstanceid, $
if (empty($configwaitingtime)) {
$configwaitingtime = \block_opencast\local\visibility_helper::DEFAULT_WAITING_TIME;
}
$formtimestamp = $this->formtimestamp;
$waitingtime = $formtimestamp + (intval($configwaitingtime) * 60);
$waitingtime = intval($configwaitingtime) * 60;
// Apply custom minute difference.
if (isset($customminutes['minutes']) && $customminutes['minutes']) {
$minutes = $customminutes['minutes'];
Expand Down

0 comments on commit b3794f2

Please sign in to comment.