Fixed a condition for error return on file put.
authorNik Okuntseff <support@anuko.com>
Wed, 27 Mar 2019 19:43:49 +0000 (19:43 +0000)
committerNik Okuntseff <support@anuko.com>
Wed, 27 Mar 2019 19:43:49 +0000 (19:43 +0000)
WEB-INF/lib/ttFileHelper.class.php
WEB-INF/templates/footer.tpl

index b976ba1..7c8324b 100644 (file)
@@ -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);
index d30bc6c..f73aa05 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.61.4887 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.61.4888 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>