Skip to content
Browse files

fixes notice error caused in form validation of file attachments - ne…

…ed not assume variable is set but use empty()
  • Loading branch information...
1 parent f5ceb06 commit bec52f19b5f8d3389b2925d320193a89f59e3674 jmg324 committed Nov 6, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/formslib.php
View
2 lib/formslib.php
@@ -214,7 +214,7 @@ function _validate_files(&$files) {
}
$errors[$elname] = $this->_upload_manager->files[$elname]['uploadlog'];
- } else if ($this->_upload_manager->files[$elname]['clear']) {
+ } else if (!empty($this->_upload_manager->files[$elname]['clear'])) {
$files[$elname] = $this->_upload_manager->files[$elname]['tmp_name'];
}
} else {

0 comments on commit bec52f1

Please sign in to comment.
Something went wrong with that request. Please try again.