ftimme
2013-06-08 d32eb66f55eb71cf131e7204c8142b74f8c1632d
- Fixed FS#2950 - DNS: Empty TTL leads to zero TTL (should be empty to use the default instead).
1 files modified
5 ■■■■■ changed files
server/plugins-available/bind_plugin.inc.php 5 ●●●●● patch | view | raw | blame | history
server/plugins-available/bind_plugin.inc.php
@@ -103,6 +103,11 @@
            $tpl->setVar($zone);
        
            $records = $app->db->queryAllRecords("SELECT * FROM dns_rr WHERE zone = ".$zone['id']." AND active = 'Y'");
            if(is_array($records) && !empty($records)){
                for($i=0;$i<sizeof($records);$i++){
                    if($records[$i]['ttl'] == 0) $records[$i]['ttl'] = '';
                }
            }
            $tpl->setLoop('zones',$records);
            
            //TODO : change this when distribution information has been integrated into server record