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:
@@ -436,7 +436,7 @@ class Bridge_Api
|
||||
$ret = $action($this);
|
||||
|
||||
return $ret;
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$this->get_connector()->handle_Exception($e);
|
||||
|
||||
if ($e instanceof Bridge_Exception_ActionAuthNeedReconnect) {
|
||||
@@ -532,7 +532,7 @@ class Bridge_Api
|
||||
foreach ($rs as $row) {
|
||||
try {
|
||||
$results[] = new Bridge_Api($app, $row['id']);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user