mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -100,7 +100,7 @@ class set_export extends set_abstract
|
||||
|
||||
try {
|
||||
$record = new record_adapter($this->app, $basrec[0], $basrec[1]);
|
||||
} catch (Exception_Record_AdapterNotFound $e) {
|
||||
} catch (\Exception_Record_AdapterNotFound $e) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@@ -116,7 +116,7 @@ class set_order extends set_abstract
|
||||
|
||||
$stmt->closeCursor();
|
||||
$app['phraseanet.appbox']->get_connection()->commit();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$app['phraseanet.appbox']->get_connection()->rollBack();
|
||||
|
||||
return false;
|
||||
@@ -431,7 +431,7 @@ class set_order extends set_abstract
|
||||
$this->user->ACL()->grant_hd_on($record, $app['authentication']->getUser(), 'order');
|
||||
|
||||
unset($record);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -106,7 +106,7 @@ class set_selection extends set_abstract
|
||||
if ($num_rows == 0) {
|
||||
$to_remove[] = $id;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -131,7 +131,7 @@ class set_selection extends set_abstract
|
||||
if (count($basrec) == 2) {
|
||||
try {
|
||||
$record = new record_adapter($this->app, (int) $basrec[0], (int) $basrec[1], count($this->elements));
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
continue;
|
||||
}
|
||||
if ($record->is_grouping() && $flatten_groupings === true) {
|
||||
|
Reference in New Issue
Block a user