mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
ItemFilter/Fixup
* fix invalid return type in createConditionsForWeights()
This commit is contained in:
@@ -2032,7 +2032,7 @@ class ItemListFilter extends Filter
|
|||||||
public function createConditionsForWeights() : array
|
public function createConditionsForWeights() : array
|
||||||
{
|
{
|
||||||
if (empty($this->fiData['v']['wt']))
|
if (empty($this->fiData['v']['wt']))
|
||||||
return null;
|
return [];
|
||||||
|
|
||||||
$this->wtCnd = [];
|
$this->wtCnd = [];
|
||||||
$select = [];
|
$select = [];
|
||||||
@@ -2084,7 +2084,8 @@ class ItemListFilter extends Filter
|
|||||||
// gm - gem quality (qualityId)
|
// gm - gem quality (qualityId)
|
||||||
// jc - jc-gems included (bool)
|
// jc - jc-gems included (bool)
|
||||||
|
|
||||||
$parts[] = $this->createConditionsForWeights();
|
if ($_ = $this->createConditionsForWeights())
|
||||||
|
$parts[] = $_;
|
||||||
|
|
||||||
foreach ($_v['wt'] as $_)
|
foreach ($_v['wt'] as $_)
|
||||||
$this->formData['extraCols'][] = $_;
|
$this->formData['extraCols'][] = $_;
|
||||||
|
|||||||
Reference in New Issue
Block a user