mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -133,7 +133,7 @@ class eventsmanager_notify_validationdone extends eventsmanager_notifyAbstract
|
||||
|
||||
try {
|
||||
$registered_user = User_Adapter::getInstance($from, $this->app);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return array();
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ class eventsmanager_notify_validationdone extends eventsmanager_notifyAbstract
|
||||
$repository = $this->app['EM']->getRepository('\Entities\Basket');
|
||||
|
||||
$basket = $repository->findUserBasket($this->app, $ssel_id, $this->app['authentication']->getUser(), false);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return array();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user