From 5a43e7a2ea0cf7af35c100cb67e4a53566cbc496 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Fri, 03 Feb 2012 05:58:01 -0500
Subject: [PATCH] - Implemented new backup and restore functions for websites and databases (see also FS#1389) - Added "actions" framework in server to replace the functions provided by the core modules - Moved system update function from remoteactins core module to software update plugin.
---
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