From: Nik Okuntseff Date: Wed, 27 Mar 2019 19:43:49 +0000 (+0000) Subject: Fixed a condition for error return on file put. X-Git-Tag: timetracker_1.19-1~149 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c45c90dc951017a163a3ee72bd6e26d291ceb642;p=timetracker.git Fixed a condition for error return on file put. --- 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); diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index d30bc6c9..f73aa055 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.61.4887 | Copyright © Anuko | +  Anuko Time Tracker 1.18.61.4888 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}