diff options
author | Malf Furious <m@lfurio.us> | 2016-04-30 16:57:11 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-05-01 01:34:23 -0400 |
commit | ed2af3a874417b8317bb6def9b40189b1d5d05e8 (patch) | |
tree | 840521266ca13e178c1c31872ef961c36dcc851c /app | |
parent | be1a82affdaa1e87015a0a49979e9230cdc61b4d (diff) | |
download | scrott-ed2af3a874417b8317bb6def9b40189b1d5d05e8.tar.gz scrott-ed2af3a874417b8317bb6def9b40189b1d5d05e8.zip |
Fix to Form::saveFile()
Only log an error if we get an upload error besides err code 4 (No file
uploaded)
Diffstat (limited to '')
-rw-r--r-- | app/class/form.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |