fix re-enabling of database users after being deactivated, fixes #660

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-02-21 10:19:58 +01:00
parent 4ec32c0972
commit fdefd4f1fe
3 changed files with 12 additions and 5 deletions

View File

@@ -305,11 +305,11 @@ class Store
// be aware that ipv6 addresses are enclosed in [ ] when passed here
$mysql_access_host_array = array_map(array(
self,
'\\Froxlor\\Settings\\Store',
'cleanMySQLAccessHost'
), $mysql_access_host_array);
$mysql_access_host_array = array_unique(\Froxlor\PhpHelper::arrayTrim($mysql_access_host_array));
$mysql_access_host_array = array_unique($mysql_access_host_array);
$newfieldvalue = implode(',', $mysql_access_host_array);
\Froxlor\Database\DbManager::correctMysqlUsers($mysql_access_host_array);
}