From ed2af3a874417b8317bb6def9b40189b1d5d05e8 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 30 Apr 2016 16:57:11 -0400 Subject: Fix to Form::saveFile() Only log an error if we get an upload error besides err code 4 (No file uploaded) --- app/class/form.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/class/form.class.php') diff --git a/app/class/form.class.php b/app/class/form.class.php index 907c0a2..fd85638 100644 --- a/app/class/form.class.php +++ b/app/class/form.class.php @@ -191,7 +191,9 @@ class Form { if ($file['error'] > 0) { - $this->logError("An unknown error occurred"); + if ($file['error'] != UPLOAD_ERR_NO_FILE) + $this->logError("An unknown error occurred"); + return false; } -- cgit v1.2.3