From 9b0aa5c885c10e9b66be5601cc184ba8f82a7204 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sat, 11 Oct 2025 22:25:01 +0200 Subject: [PATCH] Achievements/Fixup * fix fetching achievements from child catgs if selected catg is empty --- endpoints/achievements/achievements.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/achievements/achievements.php b/endpoints/achievements/achievements.php index 98c2676a..fc82692c 100644 --- a/endpoints/achievements/achievements.php +++ b/endpoints/achievements/achievements.php @@ -119,7 +119,7 @@ class AchievementsBaseResponse extends TemplateResponse implements ICache $conditions = []; if ($fiCnd) $conditions[] = $fiCnd; - if ($catList = DB::Aowow()->SelectCol('SELECT `id` FROM ?_achievementcategory WHERE `parentCat` IN (?a) OR `parentCat2` IN (?a) ', end($this->category), end($this->category))) + if ($catList = DB::Aowow()->SelectCol('SELECT `id` FROM ?_achievementcategory WHERE `parentCat` IN (?a) OR `parentCat2` IN (?a) ', $this->category, $this->category)) $conditions[] = ['category', $catList]; $acvList = new AchievementList($conditions, ['calcTotal' => true]);