- no need for $ === FALSE here, according to reviewer

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2018-05-14 22:02:35 +02:00
parent 932d51580b
commit 4b6852de4b

View file

@ -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, [