summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
Diffstat (limited to 'app/class')
-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;
}