[API] Removed unsets that are not needed

master
ntimo 2019-10-05 18:14:36 +02:00
parent 2c7e9f49d5
commit 8a87dd4254
No known key found for this signature in database
GPG Key ID: 3AF3627FB0440D55
1 changed files with 0 additions and 5 deletions

View File

@ -213,7 +213,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error', 'type' => 'error',
'msg' => 'route not found' 'msg' => 'route not found'
)); ));
unset($_POST);
exit(); exit();
} }
break; break;
@ -228,7 +227,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error', 'type' => 'error',
'msg' => 'only GET method is allowed' 'msg' => 'only GET method is allowed'
)); ));
unset($_POST);
exit(); exit();
} }
switch ($category) { switch ($category) {
@ -1193,7 +1191,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error', 'type' => 'error',
'msg' => 'route not found' 'msg' => 'route not found'
)); ));
unset($_POST);
exit(); exit();
} }
break; break;
@ -1347,7 +1344,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error', 'type' => 'error',
'msg' => 'route not found' 'msg' => 'route not found'
)); ));
unset($_POST);
exit(); exit();
} }
break; break;
@ -1358,7 +1354,6 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
'type' => 'error', 'type' => 'error',
'msg' => 'route not found' 'msg' => 'route not found'
)); ));
unset($_POST);
exit(); exit();
} }
} }