Remove certificate on removal of subdomain, fixes #1596

This commit is contained in:
Daniel Reichelt
2016-03-06 18:40:48 +01:00
parent 77502efce7
commit fb5fd5a279

View File

@@ -268,6 +268,13 @@ if ($page == 'domains'
);
Database::pexecute($del_stmt, array('domainid' => $id));
// remove certificate from domain_ssl_settings, fixes #1596
$del_stmt = Database::prepare("
DELETE FROM `" . TABLE_PANEL_DOMAIN_SSL_SETTINGS . "`
WHERE `domainid` = :domainid"
);
Database::pexecute($del_stmt, array('domainid' => $id));
$log->logAction(ADM_ACTION, LOG_INFO, "deleted domain/subdomains (#" . $result['id'] . ")");
updateCounters();
inserttask('1');