From 460983ff96c7f6b57d7d7d567c767730fb1ba36e Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 23 Nov 2018 17:04:48 +0000 Subject: [PATCH] Fixed user details output. --- WEB-INF/lib/ttUser.class.php | 1 + WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index f89bba68..25cc83f7 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -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); diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 0240ecfb..161df020 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.27.4501 | Copyright © Anuko | +  Anuko Time Tracker 1.18.27.4503 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1