[API] Removed unsets that are not needed
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user