diff --git a/source/streamio/classes/form/edit_resource.php b/source/streamio/classes/form/edit_resource.php index b6d6c82..30e27d0 100644 --- a/source/streamio/classes/form/edit_resource.php +++ b/source/streamio/classes/form/edit_resource.php @@ -139,7 +139,7 @@ public function definition_after_data() { public function validation($data, $files) { $errors = []; - if (empty($data['newfile']) && empty($data['file'])) { + if (empty($data['edit']) && empty($data['newfile']) && empty($data['file'])) { $errors['file'] = get_string('required'); }