From: hickert Date: Tue, 28 Aug 2007 11:15:07 +0000 (+0000) Subject: Updated dns functions. Fixed : Fatal error: [] operator not supported for strings... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=285185ce7a5500b62476756f5ec39de6f6ad0e12;p=gosa.git 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 --- 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']; }