'cod' is keys not in values (#103)

Signed-off-by: Mohamed-Ismail Mejri <imejri@hotmail.com>

Signed-off-by: Mohamed-Ismail Mejri <imejri@hotmail.com>
master
Mohamed-Ismail Mejri 2022-08-18 09:26:23 +02:00 committed by GitHub
parent c043b2956e
commit d1eaff1d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class CityController extends IntermediateController {
true); true);
// If no cod we just return a 502 as the API is not responding properly // If no cod we just return a 502 as the API is not responding properly
if (!in_array('cod', $cityDatas)) { if (!array_key_exists('cod', $cityDatas)) {
return array("code" => 502, "response" => null); return array("code" => 502, "response" => null);
} }