mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 19:44:00 +02:00
Return Db from connection()
It's not a real type declaration because compile.php passes stdClass here.
This commit is contained in:
@@ -42,7 +42,7 @@ if (!$error && $_POST) {
|
||||
echo "<p class='error'>" . error() . "\n";
|
||||
} else {
|
||||
$connection2 = connect(adminer()->credentials());
|
||||
if (is_object($connection2)) {
|
||||
if ($connection2) {
|
||||
$connection2->select_db(DB);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user