Fixed ttGroupHelper::getTopGroups to not display deleted groups.
authorNik Okuntseff <support@anuko.com>
Sun, 4 Nov 2018 14:05:55 +0000 (14:05 +0000)
committerNik Okuntseff <support@anuko.com>
Sun, 4 Nov 2018 14:05:55 +0000 (14:05 +0000)
WEB-INF/lib/ttGroupHelper.class.php
WEB-INF/templates/footer.tpl

index 3fb01c6..44dc3e1 100644 (file)
@@ -36,7 +36,7 @@ class ttGroupHelper {
     $mdb2 = getConnection();
 
     $sql =  "select id, name, created, lang from tt_groups".
-            " where status = 1 and org_id is NULL or org_id = id order by id desc";
+            " where status = 1 and (org_id is NULL or org_id = id) order by id desc";
     $res = $mdb2->query($sql);
     $result = array();
     if (!is_a($res, 'PEAR_Error')) {
index 0874332..abee8d9 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.07.4359 | 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.07.4360 | 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>