From ca49e25e1bf4647e08a9d14c5779ae1c46126499 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 12 Oct 2020 16:24:31 +0200 Subject: [PATCH] fixes #1230 no groups error Avoid using count on the groups variables if it is empty or undefined with ternary expression --- admin/themes/default/template/group_list.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/group_list.tpl b/admin/themes/default/template/group_list.tpl index c2807733b..345b0df69 100644 --- a/admin/themes/default/template/group_list.tpl +++ b/admin/themes/default/template/group_list.tpl @@ -94,7 +94,7 @@ var rootUrl = '{$ROOT_URL}'
-

{'Group management'|@translate} {count($groups)}

+

{'Group management'|@translate} {(empty($groups)) ? 0 :count($groups)}