ItemFilter/Fixup

* fix invalid return type in createConditionsForWeights()
This commit is contained in:
Sarjuuk
2024-08-27 16:35:15 +02:00
parent 5270e70cd1
commit 48ce7267e7

View File

@@ -2032,7 +2032,7 @@ class ItemListFilter extends Filter
public function createConditionsForWeights() : array
{
if (empty($this->fiData['v']['wt']))
return null;
return [];
$this->wtCnd = [];
$select = [];
@@ -2084,7 +2084,8 @@ class ItemListFilter extends Filter
// gm - gem quality (qualityId)
// jc - jc-gems included (bool)
$parts[] = $this->createConditionsForWeights();
if ($_ = $this->createConditionsForWeights())
$parts[] = $_;
foreach ($_v['wt'] as $_)
$this->formData['extraCols'][] = $_;