From c45c90dc951017a163a3ee72bd6e26d291ceb642 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Wed, 27 Mar 2019 19:43:49 +0000 Subject: [PATCH 1/1] Fixed a condition for error return on file put. --- WEB-INF/lib/ttFileHelper.class.php | 2 +- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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} -- 2.20.1