Fixed: Required parameter $mode follows optional parameter $submit (#724)

This commit is contained in:
Roman Kelesidis 2023-05-25 13:31:45 +07:00 committed by GitHub
commit 00afae9c88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ require __DIR__ . '/pagestart.php';
$group_id = isset($_REQUEST[POST_GROUPS_URL]) ? (int)$_REQUEST[POST_GROUPS_URL] : 0;
$mode = isset($_REQUEST['mode']) ? (string)$_REQUEST['mode'] : '';
attachment_quota_settings('group', isset($_POST['group_update']), $mode);
attachment_quota_settings('group', $mode, isset($_POST['group_update']));
if (!empty($_POST['edit']) || !empty($_POST['new'])) {
if (!empty($_POST['edit'])) {

View file

@ -26,7 +26,7 @@ function attach_build_auth_levels($is_auth, &$s_auth_can)
/**
* Called from admin_users.php and admin_groups.php in order to process Quota Settings (admin/admin_users.php:admin/admin_groups.php)
*/
function attachment_quota_settings($admin_mode, $submit = false, $mode)
function attachment_quota_settings($admin_mode, $mode, $submit = false)
{
global $template, $lang, $attach_config;
$this_userdata = [];