bug fixes variable $dom_id et non $domain_id

This commit is contained in:
Remi 2017-01-24 17:52:29 +01:00
parent 77a7849119
commit 20dab5677a
1 changed files with 2 additions and 2 deletions

View File

@ -471,10 +471,10 @@ ORDER BY
$this->delete($one["id"]);
}
}
$db->query("SELECT domaine FROM domaines WHERE id= ? ;", array($domain_id));
$db->query("SELECT domaine FROM domaines WHERE id= ? ;", array($dom_id));
if ($db->next_record()) {
$db->query("UPDATE sub_domaines SET web_action='DELETE' WHERE domaine= ? AND type='txt' AND (sub='' AND valeur LIKE 'v=spf1 %') OR (sub='_dmarc' AND valeur LIKE 'v=dmarc1;%');", array($db->Record["domaine"]));
$db->query("UPDATE domaines SET dns_action='UPDATE' WHERE id= ? ;", array($domain_id));
$db->query("UPDATE domaines SET dns_action='UPDATE' WHERE id= ? ;", array($dom_id));
}
return true;