Fix tabs/spacing

This commit is contained in:
Kienan Stewart 2020-07-27 10:13:31 -04:00 committed by Camille Lafitte
parent a675041874
commit ef21e3e144
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ class m_apache {
$deleteme= $subdom["sub"].(($subdom["sub"])?".":"").$subdom["domaine"].".conf";
@unlink($confdir."/".$deleteme);
$this->shouldreload=true;
return 0;
return 0;
}

View File

@ -1986,8 +1986,8 @@ 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));
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 ;)