From 43011ee84f95f65e2c3d1f6653807c925271a0cb Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 09 Oct 2010 06:24:06 -0400
Subject: [PATCH] Fixed a warning message related to database permission reconfiguration.

---
 install/lib/installer_base.lib.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index 53eb97e..7b02f88 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -286,6 +286,8 @@
 		 *   1) it is a single server
 		 *   2) it is the MASTER of n clients
 		*/
+		$hosts = array();
+		
 		if($conf['mysql']['master_slave_setup'] == 'y') {
 			/*
 			 * it is a master-slave - Setup so the slave has to grant its rights in the master
@@ -320,7 +322,7 @@
 			}
 		}
 		
-		if(is_array($hosts)) {
+		if(count($hosts) > 0) {
 		foreach($hosts as $host => $value) {
 			/*
 			 * If a pwd exists, this means, we have to add the new user (and his pwd).

--
Gitblit v1.9.1