From 267d30d4f612c20e4e48224c8ff5295b0f48b3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 10 Nov 2015 10:28:23 +0100 Subject: [PATCH] Fix #18072 --- settings/js/users/users.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/settings/js/users/users.js b/settings/js/users/users.js index bc8a6a9273..8ce9cb6ac7 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -315,11 +315,7 @@ var UserList = { var gid = groups[i]; var $li = GroupList.getGroupLI(gid); var userCount = GroupList.getUserCount($li); - if(userCount === 1) { - GroupList.setUserCount($li, ''); - } else { - GroupList.setUserCount($li, userCount - 1); - } + GroupList.setUserCount($li, userCount - 1); } GroupList.decEveryoneCount(); UserList.hide(uid); @@ -334,11 +330,7 @@ var UserList = { var gid = groups[i]; var $li = GroupList.getGroupLI(gid); var userCount = GroupList.getUserCount($li); - if(userCount === 1) { - GroupList.setUserCount($li, ''); - } else { - GroupList.setUserCount($li, userCount + 1); - } + GroupList.setUserCount($li, userCount + 1); } GroupList.incEveryoneCount(); UserList.getRow(uid).show();