From 4153fc2584a62ab3949b182e42fb61c804925a08 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 7 Dec 2018 14:37:28 +0000 Subject: [PATCH] Fixed group_edit.php for no subgroups situation. --- WEB-INF/templates/footer.tpl | 2 +- group_edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index db006ef8..696890b6 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.29.4605 | Copyright © Anuko | +  Anuko Time Tracker 1.18.29.4606 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/group_edit.php b/group_edit.php index 29bfd801..b16a15f0 100644 --- a/group_edit.php +++ b/group_edit.php @@ -40,7 +40,7 @@ import('ttConfigHelper'); if ($request->isGet()) { $group_id = $request->getParameter('id') ? $request->getParameter('id') : $user->getGroup(); } else { - $group_id = $request->getParameter('group'); + $group_id = $request->getParameter('group') ? $request->getParameter('group') : $user->getGroup(); } $home_group = $user->group_id == $group_id; if ($home_group) { -- 2.20.1