Merge pull request #343 from Koumbit/336_domaine_deletions_stuck

Fix domain deletion query
This commit is contained in:
Km 2019-07-12 21:35:45 +02:00 committed by GitHub
commit db471afa79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1928,7 +1928,7 @@ class m_dom {
} }
if ($onedom["dns_action"]=="DELETE") { if ($onedom["dns_action"]=="DELETE") {
$db->query("DELETE FROM domaines WHERE domaine=?;",array($onedom)); $db->query("DELETE FROM domaines WHERE domaine=?;",array($onedom['domaine']));
} else { } else {
// we keep the highest result returned by hooks... // we keep the highest result returned by hooks...
rsort($ret,SORT_NUMERIC); $returncode=$ret[0]; rsort($ret,SORT_NUMERIC); $returncode=$ret[0];