Skip to content

Commit

Permalink
Remove duplicated DB update to disable sub-domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazamazine authored and camlafit committed Sep 29, 2023
1 parent 4832594 commit b61c69f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bureau/class/m_dom.php
Expand Up @@ -1987,9 +1987,6 @@ function update_domains() {
// 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"]));
Expand Down

0 comments on commit b61c69f

Please sign in to comment.