We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f7b3b commit 4dc2aedCopy full SHA for 4dc2aed
sd_source/SimpleDesk-AdminPermissions.php
@@ -403,7 +403,7 @@ function shd_admin_save_role()
403
);
404
405
foreach ($context['membergroups'] as $group)
406
- if (!empty($_POST['group' . $group]))
+ if (isset($_POST['group' . $group]))
407
if (empty($role['groups'][$group])) // box is ticked but it's one we don't know about already
408
$groups['add'][] = $group;
409
else
0 commit comments