diff options
author | Mohamed-Ismail Mejri <mejri.medismail@supcom.rnu.tn> | 2022-08-18 10:26:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-18 10:26:23 +0300 |
commit | d1eaff1d7c677e5078682ef80a84acd01578fd98 (patch) | |
tree | b16ae38649cb036b2a890cf386b50b97752fce34 | |
parent | c043b2956ecca4ee394eba3379c154962d0b85b3 (diff) |
'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>
-rw-r--r-- | lib/Controller/CityController.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |