]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/DatabaseStructure.php
Improve Console/Config display for array values
[friendica.git] / src / Core / Console / DatabaseStructure.php
index eb4c6df99837dcf4bac1ded841b8b82ba179007f..11904843102a64aa4e34fd9d6031c1c922c37beb 100644 (file)
@@ -56,11 +56,7 @@ HELP;
                        throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
                }
 
-               require_once '.htconfig.php';
-               $result = \dba::connect($db_host, $db_user, $db_pass, $db_data);
-               unset($db_host, $db_user, $db_pass, $db_data);
-
-               if (!$result) {
+               if (!\dba::connected()) {
                        throw new \RuntimeException('Unable to connect to database');
                }