From 61c9bb533f6a980edba490bd4091a3568cb33259 Mon Sep 17 00:00:00 2001 From: Vytenis Date: Sat, 12 Mar 2016 21:14:22 +0200 Subject: [PATCH] Update TranslationsController.php Closes #7 - do not throw exception to the front-end --- src/Controllers/TranslationsController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Controllers/TranslationsController.php b/src/Controllers/TranslationsController.php index 999db6f..b9a1037 100644 --- a/src/Controllers/TranslationsController.php +++ b/src/Controllers/TranslationsController.php @@ -36,7 +36,6 @@ public function getLocales() { } public function postItems(Request $request) { - if(strlen($request->get('translate')) == 0) throw new TranslationException(); $base = \DB::table('translations') ->select('name', 'value') @@ -104,4 +103,4 @@ public function postDelete(Request $request) ->where('name', strtolower($request->get('name')))->delete(); return 'OK'; } -} \ No newline at end of file +}