mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -340,7 +340,7 @@ class caption_field implements cache_cacheableInterface
|
||||
*/
|
||||
$app['phraseanet.SE']->updateRecord($record);
|
||||
unset($record);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -394,7 +394,7 @@ class caption_field implements cache_cacheableInterface
|
||||
$app['phraseanet.SE']->updateRecord($record);
|
||||
unset($caption_field);
|
||||
unset($record);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -196,7 +196,7 @@ class caption_record implements caption_interface, cache_cacheableInterface
|
||||
$fields = array();
|
||||
try {
|
||||
$fields = $this->get_data_from_cache();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$sql = "SELECT m.id as meta_id, s.id as structure_id
|
||||
FROM metadatas m, metadatas_structure s
|
||||
WHERE m.record_id = :record_id AND s.id = m.meta_struct_id
|
||||
|
Reference in New Issue
Block a user