1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 19:44:00 +02:00

Fix the uncaught exception because of namespace.

Signed-off-by: Takashi SHIRAI <shirai@nintendo.co.jp>
This commit is contained in:
Takashi SHIRAI
2025-03-19 15:23:02 +09:00
committed by Jakub Vrana
parent 2dd32cf534
commit 9f8344e53c
3 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ if (extension_loaded('pdo')) {
$options[\PDO::ATTR_STATEMENT_CLASS] = array('Adminer\PdoDbStatement');
try {
$this->pdo = new \PDO($dsn, $username, $password, $options);
} catch (Exception $ex) {
} catch (\Exception $ex) {
auth_error(h($ex->getMessage()));
}
$this->server_info = @$this->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION);