From 12d137aac418310d643b7a09ab11f2f268092d64 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Jun 2012 15:47:05 -0300 Subject: [PATCH] Apply patch from d00p from http://redmine.froxlor.org/issues/1097 Fixes the following error: Fatal error: Cannot access private property db::$password in /var/www/froxlor/lib/functions/database/function.correctMysqlUsers.php on line 27 But ID on Redmine: #1097 2012-05-30 --- lib/functions/database/function.correctMysqlUsers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/database/function.correctMysqlUsers.php b/lib/functions/database/function.correctMysqlUsers.php index a1e83b1f..69f7e773 100644 --- a/lib/functions/database/function.correctMysqlUsers.php +++ b/lib/functions/database/function.correctMysqlUsers.php @@ -24,7 +24,7 @@ function correctMysqlUsers($mysql_access_host_array) foreach($sql_root as $mysql_server => $mysql_server_details) { $db_root = new db($mysql_server_details['host'], $mysql_server_details['user'], $mysql_server_details['password'], ''); - unset($db_root->password); + unset($mysql_server_details['password']); $users = array(); $users_result = $db_root->query('SELECT * FROM `mysql`.`user`');