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:
Remi 2016-03-02 14:17:32 +01:00
parent 714cfc16d8
commit 1fe966f5d8
1 changed files with 6 additions and 4 deletions

View File

@ -979,8 +979,9 @@ ORDER BY
$new = trim($new);
$old = trim($old);
$db->query("SELECT domaine,login,compte FROM domaines, membres WHERE gesdns=1 AND gesmx=1 and membres.uid=domaines.compte;");
while ($db->next_record()) {
$this->set_dns_spf($db->Record["domaine"], $new, $old, $db->Record["compte"], $db->Record["login"]);
while ($db->next_record()) $res[]=$db->Record;
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);
$old = trim($old);
$db->query("SELECT domaine,login,compte FROM domaines, membres WHERE gesdns=1 AND gesmx=1 and membres.uid=domaines.compte;");
while ($db->next_record()) {
$this->set_dns_dmarc($db->Record["domaine"], $new, $old, $db->Record["compte"], $db->Record["login"]);
while ($db->next_record()) $res[]=$db->Record;
foreach ($res as $record) {
$this->set_dns_dmarc($record["domaine"], $new, $old, $record["compte"], $record["login"]);
}
}
}