mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Filter/Fixup
* fix evaluating imbalanced criteria
This commit is contained in:
@@ -335,7 +335,7 @@ abstract class Filter
|
|||||||
if (count($_cr) != count($_crv) || count($_cr) != count($_crs) || count($_cr) > 5 || count($_crs) > 5 /*|| count($_crv) > 5*/)
|
if (count($_cr) != count($_crv) || count($_cr) != count($_crs) || count($_cr) > 5 || count($_crs) > 5 /*|| count($_crv) > 5*/)
|
||||||
{
|
{
|
||||||
// use min provided criterion as basis; 5 criteria at most
|
// use min provided criterion as basis; 5 criteria at most
|
||||||
$min = max(5, min(count($_cr), count($_crv), count($_crs)));
|
$min = min(5, count($_cr), count($_crv), count($_crs));
|
||||||
if (count($_cr) > $min)
|
if (count($_cr) > $min)
|
||||||
array_splice($_cr, $min);
|
array_splice($_cr, $min);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user