bug fixes: spf and dmarc record weren't updated for every domain due to loss in mysql result query buffer
This commit is contained in:
parent
714cfc16d8
commit
1fe966f5d8
|
@ -979,8 +979,9 @@ ORDER BY
|
||||||
$new = trim($new);
|
$new = trim($new);
|
||||||
$old = trim($old);
|
$old = trim($old);
|
||||||
$db->query("SELECT domaine,login,compte FROM domaines, membres WHERE gesdns=1 AND gesmx=1 and membres.uid=domaines.compte;");
|
$db->query("SELECT domaine,login,compte FROM domaines, membres WHERE gesdns=1 AND gesmx=1 and membres.uid=domaines.compte;");
|
||||||
while ($db->next_record()) {
|
while ($db->next_record()) $res[]=$db->Record;
|
||||||
$this->set_dns_spf($db->Record["domaine"], $new, $old, $db->Record["compte"], $db->Record["login"]);
|
foreach ($res as $record) {
|
||||||
|
$this->set_dns_spf($record["domaine"], $new, $old, $record["compte"], $record["login"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -988,8 +989,9 @@ ORDER BY
|
||||||
$new = trim($new);
|
$new = trim($new);
|
||||||
$old = trim($old);
|
$old = trim($old);
|
||||||
$db->query("SELECT domaine,login,compte FROM domaines, membres WHERE gesdns=1 AND gesmx=1 and membres.uid=domaines.compte;");
|
$db->query("SELECT domaine,login,compte FROM domaines, membres WHERE gesdns=1 AND gesmx=1 and membres.uid=domaines.compte;");
|
||||||
while ($db->next_record()) {
|
while ($db->next_record()) $res[]=$db->Record;
|
||||||
$this->set_dns_dmarc($db->Record["domaine"], $new, $old, $db->Record["compte"], $db->Record["login"]);
|
foreach ($res as $record) {
|
||||||
|
$this->set_dns_dmarc($record["domaine"], $new, $old, $record["compte"], $record["login"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue