mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 03:34:33 +02:00
Fix issue processwire/processwire-issues#837
This commit is contained in:
@@ -353,8 +353,10 @@ abstract class Selector extends WireData {
|
|||||||
// $values2 is the value passed into the matches() function
|
// $values2 is the value passed into the matches() function
|
||||||
|
|
||||||
$numMatches = 0;
|
$numMatches = 0;
|
||||||
if($operator == '!=') $numMatchesRequired = (count($values1) + count($values2)) - 1;
|
$numMatchesRequired = 1;
|
||||||
else $numMatchesRequired = 1;
|
if(($operator === '!=' && !$this->not) || ($this->not && $operator !== '!=')) {
|
||||||
|
$numMatchesRequired = count($values1) * count($values2);
|
||||||
|
}
|
||||||
|
|
||||||
$fields = is_array($field) ? $field : array($field);
|
$fields = is_array($field) ? $field : array($field);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user