Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/weather.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohamed-Ismail Mejri <mejri.medismail@supcom.rnu.tn>2022-08-18 10:26:23 +0300
committerGitHub <noreply@github.com>2022-08-18 10:26:23 +0300
commitd1eaff1d7c677e5078682ef80a84acd01578fd98 (patch)
treeb16ae38649cb036b2a890cf386b50b97752fce34
parentc043b2956ecca4ee394eba3379c154962d0b85b3 (diff)
'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>
-rw-r--r--lib/Controller/CityController.php2
1 files changed, 1 insertions, 1 deletions
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);
}