From 5915a89a32e96146d360c7d14c9c39da941b5fd1 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 01 Jun 2010 07:11:04 -0400
Subject: [PATCH] Fixed: FS#1205 - phpmyadmin warning

---
 server/plugins-available/bind_plugin.inc.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/plugins-available/bind_plugin.inc.php b/server/plugins-available/bind_plugin.inc.php
index 2438973..7262cc1 100644
--- a/server/plugins-available/bind_plugin.inc.php
+++ b/server/plugins-available/bind_plugin.inc.php
@@ -90,7 +90,7 @@
 		$dns_config = $app->getconf->get_server_config($conf["server_id"], 'dns');
 		
 		//* Write the domain file
-		if(!empty($zone['id'])) {
+		if(!empty($data['new']['id'])) {
 			$tpl = new tpl();
 			$tpl->newTemplate("bind_pri.domain.master");
 		
@@ -129,7 +129,7 @@
 		global $app, $conf;
 		
 		//* load the server configuration options
-		$app->uses("getconf");
+		$app->uses("getconf,tpl");
 		$dns_config = $app->getconf->get_server_config($conf["server_id"], 'dns');
 		
 		//* rebuild the named.conf file

--
Gitblit v1.9.1