diff --git a/includes/pages/admin_groups.php b/includes/pages/admin_groups.php
index 5d9d8180..842640d8 100644
--- a/includes/pages/admin_groups.php
+++ b/includes/pages/admin_groups.php
@@ -7,15 +7,23 @@ function admin_groups() {
if (!isset ($_REQUEST["action"])) {
$groups_html = "";
foreach ($groups as $group) {
- $groups_html .= '
';
- $groups_html .= '' . $group['Name'] . ' | ';
+ $groups_html .= sprintf(
+ '
%s | ',
+ $group['Name']
+ );
$privileges = sql_select("SELECT * FROM `GroupPrivileges` JOIN `Privileges` ON (`GroupPrivileges`.`privilege_id` = `Privileges`.`id`) WHERE `group_id`=" . sql_escape($group['UID']));
$privileges_html = array ();
+
foreach ($privileges as $priv)
$privileges_html[] = $priv['name'];
- $groups_html .= '' . join(", ", $privileges_html) . ' | ';
- $groups_html .= 'Ändern | ';
- $groups_html .= '
';
+
+ $groups_html .= sprintf(
+ '%s | '
+ . 'Ändern | ',
+ join(', ', $privileges_html),
+ page_link_to("admin_groups"),
+ $group['UID']
+ );
}
return template_render('../templates/admin_groups.html', array (