Skip to content

Commit

Permalink
Adjust logic to handle empty DB_PREFIX (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
devkinetic authored and swalkinshaw committed May 1, 2019
1 parent 4e86bdd commit dfae747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
Config::define('DB_HOST', env('DB_HOST') ?: 'localhost');
Config::define('DB_CHARSET', 'utf8mb4');
Config::define('DB_COLLATE', '');
$table_prefix = env('DB_PREFIX') ?: 'wp_';
$table_prefix = empty(env('DB_PREFIX')) ? env('DB_PREFIX') : 'wp_'

if (env('DATABASE_URL')) {
$dsn = (object) parse_url(env('DATABASE_URL'));
Expand Down

0 comments on commit dfae747

Please sign in to comment.