mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 13:01:12 -07:00
Fixed: Required parameter $mode follows optional parameter $submit (#724)
This commit is contained in:
parent
d951ee0a84
commit
00afae9c88
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ require __DIR__ . '/pagestart.php';
|
||||||
$group_id = isset($_REQUEST[POST_GROUPS_URL]) ? (int)$_REQUEST[POST_GROUPS_URL] : 0;
|
$group_id = isset($_REQUEST[POST_GROUPS_URL]) ? (int)$_REQUEST[POST_GROUPS_URL] : 0;
|
||||||
$mode = isset($_REQUEST['mode']) ? (string)$_REQUEST['mode'] : '';
|
$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']) || !empty($_POST['new'])) {
|
||||||
if (!empty($_POST['edit'])) {
|
if (!empty($_POST['edit'])) {
|
||||||
|
|
|
@ -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)
|
* 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;
|
global $template, $lang, $attach_config;
|
||||||
$this_userdata = [];
|
$this_userdata = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue