mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:04:22 +02:00
Remove extraneous dba::connect calls
This commit is contained in:
parent
decfc553f7
commit
3985a4bc43
11 changed files with 18 additions and 60 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue