From e0dc711c2b2dc4e2ec397d7f53910f11e1ca4ade Mon Sep 17 00:00:00 2001
From: mcramer <m.cramer@pixcept.de>
Date: Mon, 02 Sep 2013 04:14:56 -0400
Subject: [PATCH] - Changed previous commit to check for read permissions only on download action

---
 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