mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-15 19:09:50 +00:00
Now without PHP errors.
This commit is contained in:
@@ -28,13 +28,13 @@ $username = '';
|
||||
$password = '';
|
||||
$database = '';
|
||||
|
||||
+if (!($databaseUrl === false)) {
|
||||
$options = parse_url($databaseUrl);
|
||||
$host = $options['host'];
|
||||
$username = $options['user'];
|
||||
$password = $options['pass'];
|
||||
$database = substr($options['path'], 1);
|
||||
}
|
||||
if (!($databaseUrl === false)) {
|
||||
$options = parse_url($databaseUrl);
|
||||
$host = $options['host'];
|
||||
$username = $options['user'];
|
||||
$password = $options['pass'];
|
||||
$database = substr($options['path'], 1);
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
|
||||
Reference in New Issue
Block a user