From 1d9e478f2e948735d23ef433143e2323d9bf1485 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Fri, 26 Aug 2016 15:51:01 +0200 Subject: [PATCH] [FIX] Undefined variable: res at upgrade time --- bureau/class/m_mail.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bureau/class/m_mail.php b/bureau/class/m_mail.php index 3dbe28c1..f624d297 100644 --- a/bureau/class/m_mail.php +++ b/bureau/class/m_mail.php @@ -977,6 +977,7 @@ 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;"); + $res=array(); while ($db->next_record()) $res[]=$db->Record; foreach ($res as $record) { $this->set_dns_spf($record["domaine"], $new, $old, $record["compte"], $record["login"]); @@ -987,6 +988,7 @@ 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;"); + $res=array(); while ($db->next_record()) $res[]=$db->Record; foreach ($res as $record) { $this->set_dns_dmarc($record["domaine"], $new, $old, $record["compte"], $record["login"]);