X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttFileHelper.class.php;h=7c8324b6fc7ee0c88b45a6ee6ad2f3a7cc7ee438;hb=c45c90dc951017a163a3ee72bd6e26d291ceb642;hp=b976ba14acca080f3bf07da4af8cdf6d1f742daf;hpb=024e938728d2b436f1f048531d8fd00a246920c6;p=timetracker.git 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);