X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/024e938728d2b436f1f048531d8fd00a246920c6..c45c90dc951017a163a3ee72bd6e26d291ceb642:/WEB-INF/lib/ttFileHelper.class.php diff --git a/WEB-INF/lib/ttFileHelper.class.php b/WEB-INF/lib/ttFileHelper.class.php index b976ba14..7c8324b6 100644 --- a/WEB-INF/lib/ttFileHelper.class.php +++ b/WEB-INF/lib/ttFileHelper.class.php @@ -167,7 +167,7 @@ class ttFileHelper { $file_key = $result_array['file_key']; $error = $result_array['error']; - if (!$file_id || !$file_key) { + if ($error || !$file_id || !$file_key) { if ($error) { // Add an error from file storage facility if we have it. $this->errors->add($error);