Events/Fixup

* fix related items tab showing all the items when none should be shown
 * amends c44bf4f575
 * closes #478
This commit is contained in:
Sarjuuk 2026-01-02 16:35:46 +01:00
parent de911d0db6
commit a4629a4f6f

View file

@ -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)
{