From 8abd041f36d1e6f7cf1441a4870470b92497b971 Mon Sep 17 00:00:00 2001 From: Florian Aders Date: Fri, 19 Feb 2016 21:01:41 +0100 Subject: [PATCH] Remove certificate on removal of subdomain, fixes #1596 Signed-off-by: Florian Aders --- customer_domains.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/customer_domains.php b/customer_domains.php index 3f16022c..2364cde0 100644 --- a/customer_domains.php +++ b/customer_domains.php @@ -227,6 +227,13 @@ if ($page == 'overview') { ); 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'); // Using nameserver, insert a task which rebuilds the server config