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:
committed by
Jakub Vrana
parent
2dd32cf534
commit
9f8344e53c
@@ -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);
|
||||
|
Reference in New Issue
Block a user