'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
parent
c043b2956e
commit
d1eaff1d7c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue