From 285185ce7a5500b62476756f5ec39de6f6ad0e12 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Aug 2007 11:15:07 +0000 Subject: [PATCH] Updated dns functions. Fixed : Fatal error: [] operator not supported for strings in /usr/local/src/gosa/include/functions_dns.inc on line 280 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7156 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions_dns.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/functions_dns.inc b/include/functions_dns.inc index e3ef16ee8..6fb7a5bb3 100644 --- a/include/functions_dns.inc +++ b/include/functions_dns.inc @@ -277,6 +277,9 @@ function getDNSZoneEntriesDiff($config,$newZones,$HostDn) /* Add new Records */ foreach($zone['RECORDS'] as $rec){ + if(!isset($obj[$rec['type']])||!is_array($obj[$rec['type']])){ + $obj[$rec['type']] = array(); + } $obj[$rec['type']][] = $rec['value']; } -- 2.30.2