From 9435c0fc2ef08a01b17cde5d293e5dc90d02e3f1 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 7 Jul 2024 20:50:22 +0200 Subject: [PATCH] EventDetailPage/RelItems * fixed getting related items from QuestList --- pages/event.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/event.php b/pages/event.php index 80a07d8b..246bd83a 100644 --- a/pages/event.php +++ b/pages/event.php @@ -190,7 +190,10 @@ class EventPage extends GenericPage $questItems = []; foreach (array_column($quests->rewards, Type::ITEM) as $arr) - $questItems = array_merge($questItems, $arr); + $questItems = array_merge($questItems, array_keys($arr)); + + foreach (array_column($quests->choices, Type::ITEM) as $arr) + $questItems = array_merge($questItems, array_keys($arr)); foreach (array_column($quests->requires, Type::ITEM) as $arr) $questItems = array_merge($questItems, $arr);