[FIX] Undefined variable: res at upgrade time

This commit is contained in:
Benjamin Sonntag 2016-08-26 15:51:01 +02:00
parent ecbee5c127
commit 1d9e478f2e
1 changed files with 2 additions and 0 deletions

View File

@ -977,6 +977,7 @@ 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;");
$res=array();
while ($db->next_record()) $res[]=$db->Record; while ($db->next_record()) $res[]=$db->Record;
foreach ($res as $record) { foreach ($res as $record) {
$this->set_dns_spf($record["domaine"], $new, $old, $record["compte"], $record["login"]); $this->set_dns_spf($record["domaine"], $new, $old, $record["compte"], $record["login"]);
@ -987,6 +988,7 @@ 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;");
$res=array();
while ($db->next_record()) $res[]=$db->Record; while ($db->next_record()) $res[]=$db->Record;
foreach ($res as $record) { foreach ($res as $record) {
$this->set_dns_dmarc($record["domaine"], $new, $old, $record["compte"], $record["login"]); $this->set_dns_dmarc($record["domaine"], $new, $old, $record["compte"], $record["login"]);