summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-04-30 16:57:11 -0400
committerMalf Furious <m@lfurio.us>2016-05-01 01:34:23 -0400
commited2af3a874417b8317bb6def9b40189b1d5d05e8 (patch)
tree840521266ca13e178c1c31872ef961c36dcc851c /app
parentbe1a82affdaa1e87015a0a49979e9230cdc61b4d (diff)
downloadscrott-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.php4
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;
}