summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-05-31 09:05:39 +0000
committerDerick Rethans <derick@php.net>2002-05-31 09:05:39 +0000
commitf3c71c43b085c8a4e6a5fa5819af73a74ae8ca92 (patch)
treeeecdd8632cbbaecabe57403f6ccea205426299f3 /main
parent5313321e089f71094551658a19f9f0898b547732 (diff)
downloadphp-git-f3c71c43b085c8a4e6a5fa5819af73a74ae8ca92.tar.gz
- Don't issue a notice when no file was uploaded
Diffstat (limited to 'main')
-rw-r--r--main/rfc1867.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index 6fad7eb3af..35252daaf0 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -729,7 +729,9 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
cancel_upload = 0;
if(strlen(filename) == 0) {
+#ifdef DEBUG_FILE_UPLOAD
sapi_module.sapi_error(E_NOTICE, "No file uploaded");
+#endif
cancel_upload = UPLOAD_ERROR_D;
}