From: Hypolite Petovan Date: Sat, 7 Jul 2018 01:24:40 +0000 (-0400) Subject: Improve comparison in App->loadDatabase() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e98216b5bbfef23424cb422c29de1cbbe1901457;p=friendica.git Improve comparison in App->loadDatabase() --- 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');