diff --git a/Services/Form/classes/class.ilPropertyFormGUI.php b/Services/Form/classes/class.ilPropertyFormGUI.php index 90714d15833d..285d296756a8 100644 --- a/Services/Form/classes/class.ilPropertyFormGUI.php +++ b/Services/Form/classes/class.ilPropertyFormGUI.php @@ -1030,7 +1030,7 @@ protected function rebuildUploadedFiles(): void $name = $file[7]; if ($idx2 != "") { - if (!isset($_FILES[$field]["tmp_name"][$idx]) || !$_FILES[$field]["tmp_name"][$idx][$idx2]) { + if (!isset($_FILES[$field]["tmp_name"][$idx][$idx2])) { $_FILES[$field]["tmp_name"][$idx][$idx2] = $full_file; $_FILES[$field]["name"][$idx][$idx2] = $name; $_FILES[$field]["type"][$idx][$idx2] = $type; @@ -1039,7 +1039,7 @@ protected function rebuildUploadedFiles(): void $_FILES[$field]["is_upload"][$idx][$idx2] = false; } } elseif ($idx != "") { - if (!isset($_FILES[$field]["tmp_name"][$idx]) || $_FILES[$field]["tmp_name"][$idx]) { + if (!isset($_FILES[$field]["tmp_name"][$idx])) { $_FILES[$field]["tmp_name"][$idx] = $full_file; $_FILES[$field]["name"][$idx] = $name; $_FILES[$field]["type"][$idx] = $type; @@ -1048,7 +1048,7 @@ protected function rebuildUploadedFiles(): void $_FILES[$field]["is_upload"][$idx] = false; } } else { - if (!$_FILES[$field]["tmp_name"]) { + if (!isset($_FILES[$field]["tmp_name"])) { $_FILES[$field]["tmp_name"] = $full_file; $_FILES[$field]["name"] = $name; $_FILES[$field]["type"] = $type;