Commit 904e71ee authored by Νίκος Κατσαούνος's avatar Νίκος Κατσαούνος
Browse files

fixed bug in Distribution Controller

parent 161ea9ce
...@@ -148,7 +148,8 @@ class Distribution extends ControllerBase { ...@@ -148,7 +148,8 @@ class Distribution extends ControllerBase {
"message" => t("Unexpected Error in initializeResults function") "message" => t("Unexpected Error in initializeResults function")
], Response::HTTP_INTERNAL_SERVER_ERROR); ], Response::HTTP_INTERNAL_SERVER_ERROR);
if ($limitUp_class = $this->retrieveCapacityLimitUp("1") === ERROR_DB) if ( ($limitUp_class = $this->retrieveCapacityLimitUp("1") ) === ERROR_DB)
//if ($limitUp_class === DB_ERROR)
return $this->respondWithStatus([ return $this->respondWithStatus([
"message" => t("Unexpected Error in retrieveCapacityLimitUp function") "message" => t("Unexpected Error in retrieveCapacityLimitUp function")
], Response::HTTP_INTERNAL_SERVER_ERROR); ], Response::HTTP_INTERNAL_SERVER_ERROR);
...@@ -264,6 +265,7 @@ class Distribution extends ControllerBase { ...@@ -264,6 +265,7 @@ class Distribution extends ControllerBase {
return $this->respondWithStatus([ return $this->respondWithStatus([
"message" => t("Unexpected Error in initializeResults function AFTER findSmallClasses call Function") "message" => t("Unexpected Error in initializeResults function AFTER findSmallClasses call Function")
], Response::HTTP_INTERNAL_SERVER_ERROR); ], Response::HTTP_INTERNAL_SERVER_ERROR);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment