From 181d072f27ced2ed2e350dc66ee6aaeafce9f4bf Mon Sep 17 00:00:00 2001
From: Nik Okuntseff <support@anuko.com>
Date: Sat, 13 Apr 2019 18:59:51 +0000
Subject: [PATCH] Improved cleanup code.

---
 WEB-INF/lib/ttOrgHelper.class.php | 2 ++
 WEB-INF/templates/footer.tpl      | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/WEB-INF/lib/ttOrgHelper.class.php b/WEB-INF/lib/ttOrgHelper.class.php
index a4be2e96..9bf1ad78 100644
--- a/WEB-INF/lib/ttOrgHelper.class.php
+++ b/WEB-INF/lib/ttOrgHelper.class.php
@@ -135,6 +135,8 @@ class ttOrgHelper {
     if (is_a($affected, 'PEAR_Error'))
       return false;
 
+    if ($affected == 0) return true; // Do not call file storage utility.
+
     // Try to make a call to file storage facility.
     if (!defined('FILE_STORAGE_URI')) return true; // Nothing to do.
 
diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl
index 80f684b6..167779d1 100644
--- a/WEB-INF/templates/footer.tpl
+++ b/WEB-INF/templates/footer.tpl
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.64.4932 | 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.64.4933 | 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>
-- 
2.20.1