Remove certificate on removal of subdomain, fixes #1596

Signed-off-by: Florian Aders <eleras@froxlor.org>
This commit is contained in:
Florian Aders
2016-02-19 21:01:41 +01:00
parent dabd4a4a4e
commit 8abd041f36

View File

@@ -227,6 +227,13 @@ if ($page == 'overview') {
); );
Database::pexecute($del_stmt, array('domainid' => $id)); 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));
inserttask('1'); inserttask('1');
// Using nameserver, insert a task which rebuilds the server config // Using nameserver, insert a task which rebuilds the server config