From 6849022573e2dd97d41f6dfe096a763d3d1566b0 Mon Sep 17 00:00:00 2001 From: Alfred Egger Date: Sun, 25 Dec 2022 21:11:43 +0100 Subject: [PATCH] Fix array key check causing 502 error --- 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 c084e95..82a0c9c 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 (!array_key_exists('cod', $cityDatas)) { + if (!array_key_exists("cod", $cityDatas)) { return array("code" => 502, "response" => null); }