Commit 267d30d4 authored by Thomas Müller's avatar Thomas Müller
Browse files

Fix #18072

parent 960c8cb5
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment