]> git.mxchange.org Git - friendica.git/commitdiff
Improve comparison in App->loadDatabase()
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 7 Jul 2018 01:24:40 +0000 (21:24 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 16 Jul 2018 23:38:15 +0000 (19:38 -0400)
src/App.php

index be4c7785ee200a555c9d4c5caddbdbeb8e3fb191..3ce5bf576caff7ef460cdf0796e69e46f4c7edbd 100644 (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');