From a4629a4f6f394fbcd962b56eefcc21cc5abca315 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Fri, 2 Jan 2026 16:35:46 +0100 Subject: [PATCH] Events/Fixup * fix related items tab showing all the items when none should be shown * amends c44bf4f575d12b54fd35972f9d9a600994ac3ee4 * closes #478 --- endpoints/event/event.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/endpoints/event/event.php b/endpoints/event/event.php index 1985d086..037a6734 100644 --- a/endpoints/event/event.php +++ b/endpoints/event/event.php @@ -201,7 +201,7 @@ class EventBaseResponse extends TemplateResponse implements ICache } } - $itemCnd = ['OR']; + $itemCnd = []; if ($_holidayId) { // tab: criteria-of @@ -272,6 +272,7 @@ class EventBaseResponse extends TemplateResponse implements ICache // not checking for loot ... cant distinguish between eventLoot and fillerCrapLoot if ($itemCnd) { + array_unshift($itemCnd, 'OR'); $eventItems = new ItemList($itemCnd); if (!$eventItems->error) {