Fix wrong answer when amka is used on queryIDnoCD

parent 60ba11c4
......@@ -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');
}
}
......
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