Achievements/Fixup
* fix fetching achievements from child catgs if selected catg is empty
This commit is contained in:
parent
40e98081c9
commit
9b0aa5c885
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue