Events/Fixup
* fix related items tab showing all the items when none should be shown
* amends c44bf4f575
* closes #478
This commit is contained in:
parent
de911d0db6
commit
a4629a4f6f
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue