From e98216b5bbfef23424cb422c29de1cbbe1901457 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 6 Jul 2018 21:24:40 -0400 Subject: [PATCH] Improve comparison in App->loadDatabase() --- src/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index be4c7785ee..3ce5bf576c 100644 --- a/src/App.php +++ b/src/App.php @@ -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'); -- 2.39.5