[FIX] Undefined variable: res at upgrade time
This commit is contained in:
parent
ecbee5c127
commit
1d9e478f2e
|
@ -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"]);
|
||||||
|
|
Loading…
Reference in New Issue