From 924dee8da81097b994b5651a3fa69fe18eaf6e1b Mon Sep 17 00:00:00 2001 From: bison Date: Wed, 14 Sep 2016 09:28:00 +0200 Subject: [PATCH] Method getSprache of controller Sprache2 now can returns all data --- application/controllers/api/v1/system/Sprache2.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/application/controllers/api/v1/system/Sprache2.php b/application/controllers/api/v1/system/Sprache2.php index c8afeba1d..86304fc70 100644 --- a/application/controllers/api/v1/system/Sprache2.php +++ b/application/controllers/api/v1/system/Sprache2.php @@ -35,16 +35,9 @@ class Sprache2 extends APIv1_Controller { $sprache = $this->get('sprache'); - if (isset($sprache)) - { - $result = $this->SpracheModel->load($sprache); + $result = $this->SpracheModel->load($sprache); - $this->response($result, REST_Controller::HTTP_OK); - } - else - { - $this->response(); - } + $this->response($result, REST_Controller::HTTP_OK); } /** @@ -75,4 +68,4 @@ class Sprache2 extends APIv1_Controller { return true; } -} \ No newline at end of file +}