Fix array key check causing 502 error
parent
6fab29cb97
commit
6849022573
|
@ -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 (!array_key_exists('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