* Modify the judgment of unuploaded files.

This commit is contained in:
tianshujie
2024-05-09 14:31:11 +08:00
parent 0a7638ac61
commit 8229a451a6
+1 -1
View File
@@ -288,7 +288,7 @@ class doc extends control
helper::setcookie('lastDocModule', $moduleID);
if(!isset($_POST['lib']) && strpos($_POST['module'], '_') !== false) list($_POST['lib'], $_POST['module']) = explode('_', $_POST['module']);
if($_POST['type'] == 'attachment' && isset($_FILES['name']))
if($_POST['type'] == 'attachment' && empty($_FILES['files']['name'][0]))
{
$this->config->doc->form->create['title']['required'] = false;
$this->config->doc->form->create['title']['skipRequired'] = true;