mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -148,7 +148,7 @@ class connection
|
||||
|
||||
try {
|
||||
self::$_PDO_instance[$name] = new connection_pdo($name, $hostname, $port, $user, $password, $dbname, array(), $app['debug']);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
throw new Exception('Connection not available');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user