array check, thanks to phellmes
This commit is contained in:
parent
cb75ef15ce
commit
1770f28dee
@ -32,7 +32,10 @@ if ($serendipity['GET']['adminAction'] == 'save' && serendipity_checkFormToken()
|
|||||||
// Void, no fixing neccessarry
|
// Void, no fixing neccessarry
|
||||||
|
|
||||||
} elseif (serendipity_checkPermission('adminUsersMaintainSame')) {
|
} elseif (serendipity_checkPermission('adminUsersMaintainSame')) {
|
||||||
|
if (!is_array($_POST[$item['var']])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Check that no user may assign groups he's not allowed to.
|
// Check that no user may assign groups he's not allowed to.
|
||||||
foreach($_POST[$item['var']] AS $groupkey => $groupval) {
|
foreach($_POST[$item['var']] AS $groupkey => $groupval) {
|
||||||
if (in_array($groupval, $valid_groups)) {
|
if (in_array($groupval, $valid_groups)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user