summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-08-24 11:58:19 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-08-24 11:58:57 +0200
commit100602437f5efabbd91ab1762c30efdae2e84750 (patch)
tree9e36dd5c6c73c887b621ae8ef5e17aa8bece684f /includes
parent3ce3129b6e2ffdae41e61baf4ade3174aa32e559 (diff)
User admin: Allow setting new groups if user has none assigned
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/admin_user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php
index b708b38b..0aa1f161 100644
--- a/includes/pages/admin_user.php
+++ b/includes/pages/admin_user.php
@@ -198,7 +198,7 @@ function admin_user()
if (
count($my_highest_group) > 0
&& (
- count($his_highest_group) == 0
+ empty($his_highest_group)
|| ($my_highest_group['group_id'] <= $his_highest_group['group_id'])
)
) {