Skip to content

Commit

Permalink
SCORM MDL-23176 return error correctly if file not selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Jul 9, 2010
1 parent 35bd4cd commit 9eb8dcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/scorm/mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ function validation($data, $files) {
$files = $this->get_draft_files('packagefile');
if (count($files)<1) {
$errors['packagefile'] = get_string('required');
return $errors;
}
$file = reset($files);
$filename = $CFG->dataroot.'/temp/scormimport/scrom_'.time();
Expand Down

0 comments on commit 9eb8dcc

Please sign in to comment.