Skip to content

Commit 2e96120

Browse files
committed
Fixed: FS#1186 - Error in Installer r1728
1 parent 7320a55 commit 2e96120

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ public function grant_master_database_rights() {
300300
$hosts[$item['Host']]['db'] = $conf['mysql']['master_database'];
301301
}
302302
}
303-
303+
304+
if(is_array($hosts)) {
304305
foreach($hosts as $host => $value) {
305306
/*
306307
* Delete ISPConfig user in the master database, in case that it exists
@@ -371,6 +372,7 @@ public function grant_master_database_rights() {
371372
* It is all done. Relod the rights...
372373
*/
373374
$this->dbmaster->query('FLUSH PRIVILEGES;');
375+
}
374376

375377
}
376378

0 commit comments

Comments
 (0)