]> source.dussan.org Git - nextcloud-server.git/commitdiff
do not show 0 when group has no users
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 19 Feb 2014 10:46:03 +0000 (11:46 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 2 Jun 2014 10:53:52 +0000 (12:53 +0200)
settings/templates/users.php

index 1feaecd8e8653a4e2fbfe7f99944866b1fa22805..ac87cad9d81901ddf6794874d2c5511822554466 100644 (file)
@@ -44,7 +44,7 @@ $_['subadmingroups'] = array_flip($items);
                <li data-gid="<?php p($group['name']) ?>">
                        <a href="#"><?php p($group['name']); ?></a>
                        <span class="utils">
-                               <span class="usercount"><?php p(count($group['useringroup'])); ?></span>
+                               <span class="usercount"><?php if(count($group['useringroup']) > 0) { p(count($group['useringroup'])); } ?></span>
                                <img class="svg action rename" src="<?php p(image_path('core', 'actions/rename.svg'))?>"
                                        alt="<?php p($l->t("change group name"))?>" title="<?php p($l->t("change group name"))?>" />
                                <a href="#" class="action delete" original-title="<?php p($l->t('Delete'))?>">