From 245d00eca92d4517bd8b89e04331530cd4b1e103 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 11 Feb 2003 17:50:28 +0000 Subject: [PATCH] sometimes filename is none --- tbl_replace_fields.php3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbl_replace_fields.php3 b/tbl_replace_fields.php3 index 70aabeb9e..a174673b1 100755 --- a/tbl_replace_fields.php3 +++ b/tbl_replace_fields.php3 @@ -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})) {