Browse Source

Improve comparison in App->loadDatabase()

tags/2018.09
Hypolite Petovan 1 year ago
parent
commit
e98216b5bb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/App.php

+ 1
- 1
src/App.php View File

@@ -505,7 +505,7 @@ class App
// Use environment variables for mysql if they are set beforehand
if (!empty(getenv('MYSQL_HOST'))
&& (!empty(getenv('MYSQL_USERNAME')) || !empty(getenv('MYSQL_USER')))
&& !getenv('MYSQL_PASSWORD') === false
&& getenv('MYSQL_PASSWORD') !== false
&& !empty(getenv('MYSQL_DATABASE')))
{
$db_host = getenv('MYSQL_HOST');


Loading…
Cancel
Save