From d1eaff1d7c677e5078682ef80a84acd01578fd98 Mon Sep 17 00:00:00 2001 From: Mohamed-Ismail Mejri Date: Thu, 18 Aug 2022 09:26:23 +0200 Subject: [PATCH] 'cod' is keys not in values (#103) Signed-off-by: Mohamed-Ismail Mejri Signed-off-by: Mohamed-Ismail Mejri --- lib/Controller/CityController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/CityController.php b/lib/Controller/CityController.php index 61563de..c084e95 100644 --- a/lib/Controller/CityController.php +++ b/lib/Controller/CityController.php @@ -136,7 +136,7 @@ class CityController extends IntermediateController { true); // 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); }