mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-22 05:09:24 +02:00
[API] Removed unsets that are not needed
This commit is contained in:
parent
2c7e9f49d5
commit
8a87dd4254
@ -213,7 +213,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
|
||||
'type' => 'error',
|
||||
'msg' => 'route not found'
|
||||
));
|
||||
unset($_POST);
|
||||
exit();
|
||||
}
|
||||
break;
|
||||
@ -228,7 +227,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
|
||||
'type' => 'error',
|
||||
'msg' => 'only GET method is allowed'
|
||||
));
|
||||
unset($_POST);
|
||||
exit();
|
||||
}
|
||||
switch ($category) {
|
||||
@ -1193,7 +1191,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
|
||||
'type' => 'error',
|
||||
'msg' => 'route not found'
|
||||
));
|
||||
unset($_POST);
|
||||
exit();
|
||||
}
|
||||
break;
|
||||
@ -1347,7 +1344,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
|
||||
'type' => 'error',
|
||||
'msg' => 'route not found'
|
||||
));
|
||||
unset($_POST);
|
||||
exit();
|
||||
}
|
||||
break;
|
||||
@ -1358,7 +1354,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
|
||||
'type' => 'error',
|
||||
'msg' => 'route not found'
|
||||
));
|
||||
unset($_POST);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user