From 2d2fd172e1548dd24e1719accd0b856cff6a31a0 Mon Sep 17 00:00:00 2001 From: Falko Timme <ft@falkotimme.com> Date: Fri, 18 Oct 2013 12:20:13 -0400 Subject: [PATCH] - Added funtion to convert currency formatted numbers back to floating numbers. - Improved getSearchSQL() function so that users can use their native date format so search for dates in lists. --- server/plugins-available/bind_plugin.inc.php | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/server/plugins-available/bind_plugin.inc.php b/server/plugins-available/bind_plugin.inc.php index e4f6e6c..fd7f516 100644 --- a/server/plugins-available/bind_plugin.inc.php +++ b/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 -- Gitblit v1.9.1