From e325c34d9f2e83620a98c64cd829dd3968dd45f4 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Mon, 30 Apr 2018 17:43:15 +0200
Subject: [PATCH] Fixed#4966 DMARC doesn't work with php >= 7.0

---
 interface/web/dns/dns_dmarc_edit.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/web/dns/dns_dmarc_edit.php b/interface/web/dns/dns_dmarc_edit.php
index 7f915074d7..6b720c0f38 100644
--- a/interface/web/dns/dns_dmarc_edit.php
+++ b/interface/web/dns/dns_dmarc_edit.php
@@ -287,7 +287,7 @@ class page_action extends tform_actions {
 			unset($temp);
 		}
 		
-		$fo_rec = '';
+		$fo_rec = array();
 		if (isset($this->dataRecord['dmarc_fo0'])) $fo_rec[] = '0';
 		if (isset($this->dataRecord['dmarc_fo1'])) $fo_rec[] = '1';
 		if (isset($this->dataRecord['dmarc_fod'])) $fo_rec[] = 'd';
-- 
GitLab