mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Util
* relax numeric type requirements when working with filters * restore smart type casting functionality of Util::checkNumeric when used with NUM_ANY * enable Util::arraySumByKey to work recursively * fix source display in listview
This commit is contained in:
@@ -2678,7 +2678,7 @@ class SpellListFilter extends Filter
|
||||
if (!$this->parentCats || !in_array($this->parentCats[0], [-13, -2, 7]))
|
||||
return false;
|
||||
|
||||
if (!Util::checkNumeric($val, NUM_REQ_INT))
|
||||
if (!Util::checkNumeric($val, NUM_CAST_INT))
|
||||
return false;
|
||||
|
||||
$type = FILTER_V_LIST;
|
||||
@@ -2692,7 +2692,7 @@ class SpellListFilter extends Filter
|
||||
if (!$this->parentCats || $this->parentCats[0] != -13)
|
||||
return false;
|
||||
|
||||
if (!Util::checkNumeric($val, NUM_REQ_INT))
|
||||
if (!Util::checkNumeric($val, NUM_CAST_INT))
|
||||
return false;
|
||||
|
||||
$type = FILTER_V_LIST;
|
||||
|
||||
Reference in New Issue
Block a user