Remove duplicated DB update to disable sub-domain

This commit is contained in:
Nina 2022-06-02 10:31:17 -04:00 committed by Camille Lafitte
parent 4832594a1e
commit b61c69f007
1 changed files with 0 additions and 3 deletions

View File

@ -1987,9 +1987,6 @@ class m_dom {
// is it a delete (DISABLED or DELETE)
if ($subdom["web_action"]=="DELETE" || strtoupper(substr($subdom["enable"],0,7))=="DISABLE") {
$ret = $hooks->invoke("hook_updatedomains_web_del",array($subdom["id"]));
if (strtoupper(substr($subdom["enable"],0,7))=="DISABLE") {
$db->query("UPDATE sub_domaines SET enable=\"DISABLED\" WHERE id=?;",array($id));
}
} else {
$hooks->invoke("hook_updatedomains_web_before",array($subdom["id"])); // give a chance to get SSL cert before ;)
$ret = $hooks->invoke("hook_updatedomains_web_add",array($subdom["id"]));