From dbdc625ddbbeee023731866c6cd8f59f760117ba Mon Sep 17 00:00:00 2001 From: Alfred Egger Date: Fri, 8 Nov 2019 17:36:05 +0100 Subject: [PATCH] Fix getting permanent error 502 while adding new city --- lib/Controller/CityController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Controller/CityController.php b/lib/Controller/CityController.php index e9af16b..463f9a7 100644 --- a/lib/Controller/CityController.php +++ b/lib/Controller/CityController.php @@ -134,9 +134,6 @@ class CityController extends IntermediateController { $cityDatas = json_decode($this->curlGET( "http://api.openweathermap.org/data/2.5/forecast?q=".urlencode($name)."&mode=json&APPID=".urlencode($apiKey))[1], true); - if (in_array('cod', $cityDatas)) { - return array("code" => 502, "response" => null); - } if ($cityDatas['cod'] != '200') { return array("code" => $cityDatas['cod'], "response" => null, "apikey" => $apiKey);