summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c8a34c6)
raw | patch | inline | side by side (parent: c8a34c6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 3 Feb 2009 13:56:10 +0000 (13:56 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 3 Feb 2009 13:56:10 +0000 (13:56 +0000) |
-dNSTTL is now optional
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13379 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13379 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc | patch | blob | history |
diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc
index 4aa743a60474e2c24c63c2931f3b1d3029606cff..5976e813a1278f923eb6450a3f330709a3f46043 100644 (file)
$ret['RECORDS'] = array();
$ret['dNSClass'] = "IN";
$ret['zoneName'] = "";
- $ret['dNSTTL'] = "7440";
+ $ret['dNSTTL'] = "";
$ret['exists'] = false;
$ldap = $config->get_ldap_link();
*/
$baseObj = array();
$baseObj['objectClass'] = array("top","dNSZone");
- $baseObj['dNSTTL'] = $newEntry['dNSTTL'];
+ if(!empty($newEntry['dNSTTL'])){
+ $baseObj['dNSTTL'] = $newEntry['dNSTTL'];
+ }
$baseObj['dNSClass'] = $newEntry['dNSClass'];
$baseObj['zoneName'] = $zoneName;
$baseObj['relativeDomainName']= $newName;