diff --git a/lib/classes/API/V1/adapter.php b/lib/classes/API/V1/adapter.php index b65ac29949..6e9f86d1ce 100644 --- a/lib/classes/API/V1/adapter.php +++ b/lib/classes/API/V1/adapter.php @@ -1183,7 +1183,7 @@ class API_V1_adapter extends API_V1_Abstract try { $record = $databox->get_record($record_id); $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')); } catch (\Exception $e) { $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 { $story = $databox->get_record($story_id); $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')); } catch (\Exception $e) { $result->set_error_message(API_V1_result::ERROR_BAD_REQUEST, $this->app->trans('An error occured')); diff --git a/lib/classes/Session/Logger.php b/lib/classes/Session/Logger.php index 37884fb8ce..e51cc480f9 100644 --- a/lib/classes/Session/Logger.php +++ b/lib/classes/Session/Logger.php @@ -253,7 +253,7 @@ class Session_Logger $stmt = $connbas->prepare($sql); $stmt->execute($params); $stmt->closeCursor(); - } catch (Exception $e) { + } catch (\Exception $e) { } }