From 0110094b2d206e88dceb0cfe2bc4c85f2e826dda Mon Sep 17 00:00:00 2001
From: moglia <moglia@ispconfig3>
Date: Thu, 13 May 2010 00:39:42 -0400
Subject: [PATCH] Small brazilian portuguese language files update.  br_database_list.lng

---
 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 78423e9..c925f3c 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -300,7 +300,8 @@
 				$hosts[$item['Host']]['db'] = $conf['mysql']['master_database'];
 			}
 		}
-
+		
+		if(is_array($hosts)) {
 		foreach($hosts as $host => $value) {
 			/*
 			 *  Delete ISPConfig user in the master database, in case that it exists
@@ -371,6 +372,7 @@
 		 * It is all done. Relod the rights...
 		 */
 		$this->dbmaster->query('FLUSH PRIVILEGES;');
+		}
 
 	}
 

--
Gitblit v1.9.1