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); }