From b98794a292daa684352d24bd05875c78ab0c55a2 Mon Sep 17 00:00:00 2001 From: ma0068 Date: Mon, 4 Mar 2024 08:40:08 +0100 Subject: [PATCH] fix bug Validierung checkifExistingStudentRolle --- application/controllers/components/stv/Status.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/controllers/components/stv/Status.php b/application/controllers/components/stv/Status.php index fa1ec9295..4c5770779 100644 --- a/application/controllers/components/stv/Status.php +++ b/application/controllers/components/stv/Status.php @@ -219,6 +219,11 @@ class Status extends FHC_Controller $this->output->set_status_header(REST_Controller::HTTP_INTERNAL_SERVER_ERROR); return $this->outputJson(getError($result)); } + if($result->retval == "0") + { + $this->output->set_status_header(REST_Controller::HTTP_INTERNAL_SERVER_ERROR); + return $this->outputJson($result->code); + } } //TODO(Manu) check permission...