From e615265d3b51e27f0f664cea193b6353975d6f7d Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 29 Aug 2011 04:25:44 -0400 Subject: [PATCH] Fixed php notice in session library. --- server/mods-available/dns_module.inc.php | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/mods-available/dns_module.inc.php b/server/mods-available/dns_module.inc.php index 0ff7c1f..01c4526 100644 --- a/server/mods-available/dns_module.inc.php +++ b/server/mods-available/dns_module.inc.php @@ -47,7 +47,11 @@ function onInstall() { global $conf; - return true; + if($conf['services']['dns'] == true) { + return true; + } else { + return false; + } } @@ -115,7 +119,7 @@ function restartBind($action = 'restart') { - global $app; + global $app,$conf; $daemon = ''; if(is_file($conf['init_scripts'] . '/' . 'bind9')) { @@ -133,7 +137,7 @@ } function restartPowerDNS($action = 'restart') { - global $app; + global $app,$conf; $app->log("restartPDNS called.",LOGLEVEL_DEBUG); -- Gitblit v1.9.1