diff --git a/data/web/inc/ajax/dns_diagnostics.php b/data/web/inc/ajax/dns_diagnostics.php
index b84d01b4..218876b3 100644
--- a/data/web/inc/ajax/dns_diagnostics.php
+++ b/data/web/inc/ajax/dns_diagnostics.php
@@ -292,6 +292,7 @@ $data_field = array(
'TLSA' => 'data',
'TXT' => 'txt',
);
+
?>
@@ -419,39 +420,48 @@ foreach ($records as &$record) {
$record[3] = explode('
', $state);
}
unset($record);
-?>
-
- 0)
+ if (strlen($val) > 0) {
$vals[] = sprintf("%s\tIN\t%s\t%s\n", $label, $record[1], $val);
+ }
}
- } else {
+ }
+ else {
$vals[] = sprintf("%s\tIN\t%s\t%s\n", $label, $record[1], $val);
}
foreach ($vals as $val) {
- $data .= str_replace($domain, $domain . '.', $val);
+ $dns_data .= str_replace($domain, $domain . '.', $val);
}
}
}
-echo '
Download';
+
?>
+
+
.txt' type='text/csv'>Download
+
1 =$lang['diagnostics']['cname_from_a'];?>