mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -301,7 +301,7 @@ class Bridge_Element
|
||||
if (! $this->connector_element) {
|
||||
try {
|
||||
$this->connector_element = $this->account->get_api()->get_element_from_id($this->dist_id, $this->type);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user