From 22cc9d84db4c6e34a9eb7e5a72351278eca403e9 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 28 Sep 2011 10:23:28 -0400
Subject: [PATCH] - Updated various language files.
---
interface/web/tools/dns_resync.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/interface/web/tools/dns_resync.php b/interface/web/tools/dns_resync.php
index aed2f4e..c80735d 100644
--- a/interface/web/tools/dns_resync.php
+++ b/interface/web/tools/dns_resync.php
@@ -46,7 +46,7 @@
// Resyncing dns zones
if(isset($_POST['resync']) && $_POST['resync'] == 1) {
$zones = $app->db->queryAllRecords("SELECT id,origin,serial FROM dns_soa WHERE active = 'Y'");
- if(is_array($zones)) {
+ if(is_array($zones) && !empty($zones)) {
foreach($zones as $zone) {
$records = $app->db->queryAllRecords("SELECT id,serial FROM dns_rr WHERE zone = ".$zone['id']." AND active = 'Y'");
if(is_array($records)) {
@@ -60,6 +60,8 @@
$app->db->datalogUpdate('dns_soa', "serial = '".$new_serial."'", 'id', $zone['id']);
$msg .= "Resynced: ".$zone['origin'].'<br />';
}
+ } else {
+ $error .= "No zones found to sync.<br />";
}
}
--
Gitblit v1.9.1