From ef21e3e144990ec215732a9e550a430e529f4a2e Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 27 Jul 2020 10:13:31 -0400 Subject: [PATCH] Fix tabs/spacing --- bureau/class/m_apache.php | 2 +- bureau/class/m_dom.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bureau/class/m_apache.php b/bureau/class/m_apache.php index 2b2f6df6..82dcbf23 100644 --- a/bureau/class/m_apache.php +++ b/bureau/class/m_apache.php @@ -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; } diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index 378ca4c7..d57b969b 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -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 ;)