Merge pull request #5647 from christianbeeznest/fixes-updates31

Internal: Minor: fix error value type for course duration
pull/5649/head
christianbeeznest 5 months ago committed by GitHub
commit efd6fc5682
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      public/main/admin/course_add.php

@ -199,7 +199,7 @@ if ($form->validate()) {
$courseData['gradebook_model_id'] = isset($courseData['gradebook_model_id']) ? $courseData['gradebook_model_id'] : null;
if (isset($courseData['duration'])) {
$courseData['duration'] = $courseData['duration'] * 60; // Convert minutes to seconds
$courseData['duration'] = (int) $courseData['duration'] * 60; // Convert minutes to seconds
}
if (!empty($courseData['course_language'])) {

Loading…
Cancel
Save