mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Fix latest merge
This commit is contained in:
@@ -1183,7 +1183,7 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
try {
|
try {
|
||||||
$record = $databox->get_record($record_id);
|
$record = $databox->get_record($record_id);
|
||||||
$result->set_datas(['record' => $this->list_record($record)]);
|
$result->set_datas(['record' => $this->list_record($record)]);
|
||||||
} catch (\NotFoundHttpException $e) {
|
} catch (NotFoundHttpException $e) {
|
||||||
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('Record Not Found'));
|
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('Record Not Found'));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('An error occured'));
|
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('An error occured'));
|
||||||
@@ -1207,7 +1207,7 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
try {
|
try {
|
||||||
$story = $databox->get_record($story_id);
|
$story = $databox->get_record($story_id);
|
||||||
$result->set_datas(['story' => $this->list_story($story)]);
|
$result->set_datas(['story' => $this->list_story($story)]);
|
||||||
} catch (\NotFoundHttpException $e) {
|
} catch (NotFoundHttpException $e) {
|
||||||
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('Story Not Found'));
|
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('Story Not Found'));
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('An error occured'));
|
$result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('An error occured'));
|
||||||
|
@@ -253,7 +253,7 @@ class Session_Logger
|
|||||||
$stmt = $connbas->prepare($sql);
|
$stmt = $connbas->prepare($sql);
|
||||||
$stmt->execute($params);
|
$stmt->execute($params);
|
||||||
$stmt->closeCursor();
|
$stmt->closeCursor();
|
||||||
} catch (Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user