From 8e749bb73c3fe0665dfb41f5b85a425d611a61eb Mon Sep 17 00:00:00 2001 From: "J. King" Date: Mon, 25 Jan 2021 09:02:52 -0500 Subject: [PATCH] Report 404 on icons for absence of data This is significant as upgraded databases have icon IDs, but no data --- lib/REST/Miniflux/V1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/REST/Miniflux/V1.php b/lib/REST/Miniflux/V1.php index c577ce0..6832b90 100644 --- a/lib/REST/Miniflux/V1.php +++ b/lib/REST/Miniflux/V1.php @@ -814,7 +814,7 @@ class V1 extends \JKingWeb\Arsse\REST\AbstractHandler { } catch (ExceptionInput $e) { return new ErrorResponse("404", 404); } - if (!$icon['id']) { + if (!$icon['data']) { return new ErrorResponse("404", 404); } return new Response([