1
0
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:
Jakub Vrana
2025-03-30 08:18:25 +02:00
parent 7ee6f4f7ac
commit a93e4cb694
8 changed files with 29 additions and 32 deletions

View File

@@ -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);
}