1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Report 404 on icons for absence of data

This is significant as upgraded databases have icon IDs, but no data
This commit is contained in:
J. King 2021-01-25 09:02:52 -05:00
parent bdf9c0e9d2
commit 8e749bb73c

View file

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