mirror of
https://github.com/Froxlor/Froxlor.git
synced 2024-09-21 10:27:29 +00:00
fix auto-delete of cetificates when no domain exists anylonger, thx to an error-report
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
parent
29365838b3
commit
0d7fa5728c
@ -106,9 +106,13 @@ if (count($all_certs) == 0) {
|
||||
|
||||
if (empty($cert['domain']) || empty($cert['ssl_cert_file'])) {
|
||||
// no domain found to the entry or empty entry - safely delete it from the DB
|
||||
Database::pexecute($del_stmt, array(
|
||||
'id' => $cert['id']
|
||||
));
|
||||
try {
|
||||
Certificates::getLocal($userinfo, array(
|
||||
'id' => $cert['id']
|
||||
))->delete();
|
||||
} catch (Exception $e) {
|
||||
// do nothing
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user