diff options
Diffstat (limited to 'src/usr/local/www/system_usermanager.php')
-rw-r--r-- | src/usr/local/www/system_usermanager.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/system_usermanager.php b/src/usr/local/www/system_usermanager.php index 323f931..bb182ca 100644 --- a/src/usr/local/www/system_usermanager.php +++ b/src/usr/local/www/system_usermanager.php @@ -237,9 +237,11 @@ if ($_POST['save']) { } /* Check the POSTed groups to ensure they are valid and exist */ - foreach ($_POST['groups'] as $newgroup) { - if (empty(getGroupEntry($newgroup))) { - $input_errors[] = gettext("One or more invalid groups was submitted."); + if(is_array($_POST['groups'])) { + foreach ($_POST['groups'] as $newgroup) { + if (empty(getGroupEntry($newgroup))) { + $input_errors[] = gettext("One or more invalid groups was submitted."); + } } } |