Skip to content

Firefly III: a personal finances manager

Now without PHP errors.

James Cole4dee6a9f5955
diff --git a/.env.heroku b/.env.heroku
index 66cf476555..9f1dac6238 100644
--- a/.env.heroku
+++ b/.env.heroku
@@ -8,8 +8,6 @@ APP_URL=http://localhost
TRUSTED_PROXIES=
DB_CONNECTION=pgsql
-# no DB info, is in database URL.
-
BROADCAST_DRIVER=log
CACHE_DRIVER=file
diff --git a/config/database.php b/config/database.php
index 16376413de..352c2e6f7f 100644
--- a/config/database.php
+++ b/config/database.php
@@ -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 [