Skip to content

Commit

Permalink
Add fallback for legitimately missing DB credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
edjeavons committed Mar 12, 2024
1 parent 4111ccc commit 751ee4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
/**
* DB settings
*/
Config::define( 'DB_NAME', $_ENV['DB_NAME'] );
Config::define( 'DB_USER', $_ENV['DB_USER'] );
Config::define( 'DB_PASSWORD', $_ENV['DB_PASSWORD'] );
Config::define( 'DB_NAME', $_ENV['DB_NAME'] ?? '' );
Config::define( 'DB_USER', $_ENV['DB_USER'] ?? '' );
Config::define( 'DB_PASSWORD', $_ENV['DB_PASSWORD'] ?? '' );
Config::define( 'DB_HOST', $_ENV['DB_HOST'] ?? 'localhost' );
Config::define( 'DB_CHARSET', 'utf8mb4' );
Config::define( 'DB_COLLATE', '' );
Expand Down

0 comments on commit 751ee4c

Please sign in to comment.