From 4b6852de4b280abfabb0635263661c6a54f76730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Mon, 14 May 2018 22:02:35 +0200 Subject: [PATCH] Fixed: - no need for $ === FALSE here, according to reviewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- geocoordinates/geocoordinates.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/geocoordinates/geocoordinates.php b/geocoordinates/geocoordinates.php index 03f5dd50..79de8630 100644 --- a/geocoordinates/geocoordinates.php +++ b/geocoordinates/geocoordinates.php @@ -58,7 +58,7 @@ function geocoordinates_resolve_item(array &$item) $s = Network::fetchUrl("https://api.opencagedata.com/geocode/v1/json?q=".$coords[0].",".$coords[1]."&key=".$key."&language=".$language); - if ($s === FALSE || empty($s)) { + if empty($s)) { logger("API could not be queried", LOGGER_DEBUG); return; } @@ -91,7 +91,6 @@ function geocoordinates_post_hook(App $a, array &$item) function geocoordinates_addon_admin(App $a, &$o) { - $t = get_markup_template("admin.tpl", "addon/geocoordinates/"); $o = replace_macros($t, [