fix missing id parameter after security question when deleting a ssl-certificate

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-12-02 16:17:59 +01:00
parent 83ff0f5b00
commit e10f77e219

View File

@@ -29,7 +29,7 @@ $success_message = "";
// do the delete and then just show a success-message and the certificates list again
if ($action == 'delete') {
$id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
$id = isset($_POST['id']) ? (int) $_POST['id'] : (isset($_GET['id']) ? (int) $_GET['id'] : 0);
if ($id > 0) {
if (isset($_POST['send']) && $_POST['send'] == 'send') {
try {