Code

Updated dns functions. Fixed : Fatal error: [] operator not supported for strings...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Aug 2007 11:15:07 +0000 (11:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Aug 2007 11:15:07 +0000 (11:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7156 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions_dns.inc

index e3ef16ee8b3f9f576ea879dab28018bb018df41e..6fb7a5bb3f52de49254bcae33d246910d0a36054 100644 (file)
@@ -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'];
     }