From 89e4329a8068e3631d3f64f6896fa3907c687cf5 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Thu, 08 Jan 2015 09:08:50 -0500 Subject: [PATCH] Layout fix: tab toggle and monitor tables --- 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 0f2afaf..2f7f932 100644 --- a/server/plugins-available/bind_plugin.inc.php +++ b/server/plugins-available/bind_plugin.inc.php @@ -106,6 +106,11 @@ if(is_array($records) && !empty($records)){ for($i=0;$i<sizeof($records);$i++){ if($records[$i]['ttl'] == 0) $records[$i]['ttl'] = ''; + if($records[$i]['name'] == '') $records[$i]['name'] = '@'; + //* Split TXT records, if nescessary + if($records[$i]['type'] == 'TXT' && strlen($records[$i]['data']) > 255) { + $records[$i]['data'] = implode('" "',str_split( $records[$i]['data'], 255)); + } } } $tpl->setLoop('zones', $records); -- Gitblit v1.9.1