Fixed user details output.
authorNik Okuntseff <support@anuko.com>
Fri, 23 Nov 2018 17:04:48 +0000 (17:04 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 23 Nov 2018 17:04:48 +0000 (17:04 +0000)
WEB-INF/lib/ttUser.class.php
WEB-INF/templates/footer.tpl

index f89bba6..25cc83f 100644 (file)
@@ -657,6 +657,7 @@ class ttUser {
   // It changes with "on behalf" attributes for both user and group.
   function getUserPartForHeader() {
     global $i18n;
+    if (!$this->id) return null;
 
     $user_part = htmlspecialchars($this->name);
     $user_part .= ' - '.htmlspecialchars($this->role_name);
index 0240ecf..161df02 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.27.4501 | 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.27.4503 | 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>