Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
904e71ee
Commit
904e71ee
authored
Jun 01, 2017
by
Νίκος Κατσαούνος
Browse files
fixed bug in Distribution Controller
parent
161ea9ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
drupal/modules/epal/src/Controller/Distribution.php
View file @
904e71ee
...
...
@@ -148,7 +148,8 @@ class Distribution extends ControllerBase {
"message"
=>
t
(
"Unexpected Error in initializeResults function"
)
],
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
([
"message"
=>
t
(
"Unexpected Error in retrieveCapacityLimitUp function"
)
],
Response
::
HTTP_INTERNAL_SERVER_ERROR
);
...
...
@@ -264,6 +265,7 @@ class Distribution extends ControllerBase {
return
$this
->
respondWithStatus
([
"message"
=>
t
(
"Unexpected Error in initializeResults function AFTER findSmallClasses call Function"
)
],
Response
::
HTTP_INTERNAL_SERVER_ERROR
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment