Filter/Fixup
* fix evaluating imbalanced criteria
This commit is contained in:
parent
3edac3c77a
commit
a9ed897ea6
1 changed files with 1 additions and 1 deletions
|
|
@ -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*/)
|
||||
{
|
||||
// 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)
|
||||
array_splice($_cr, $min);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue