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 +}