Skip to content
Snippets Groups Projects
Commit 0b0a9e22 authored by Σταύρος Παπαδάκης's avatar Σταύρος Παπαδάκης
Browse files

Fix wrong answer when amka is used on queryIDnoCD

parent 60ba11c4
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,11 @@ class App extends BaseApp
}
if ($parsed_result['response'] === 'SUCCESS' && $parsed_result['errorReason'] === null) {
if (isset($parsed_result['inspectionResult'])
&& $parsed_result['inspectionResult']['webServiceSuccess'] === true) {
&& $parsed_result['inspectionResult']['webServiceSuccess'] === true
&& (
($endpoint = $this->urlAcademicId) ||
($endpoint = $this->urlAmka && is_array($parsed_result['inspectionResult']['beneficiaryNames']))
)) {
return $this->withTextReady($res, 'isStudent:true');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment