sometimes filename is none

This commit is contained in:
Marc Delisle
2003-02-11 17:50:28 +00:00
parent 9ab6a7b35a
commit 245d00eca9

View File

@@ -7,7 +7,7 @@
// f i e l d u p l o a d e d f r o m a f i l e
if (isset(${"fields_upload_" . $key}) && !empty(${"fields_upload_" . $key})) {
if (isset(${"fields_upload_" . $key}) && !empty(${"fields_upload_" . $key}) && ${"fields_upload_" . $key} != 'none') {
$data_file = ${"fields_upload_" . $key};
$val = fread(fopen($data_file, "rb"), filesize($data_file));
if (isset(${"fields_upload_binary_" . $key})) {