Added the ability to search for presence of fields
This commit is contained in:
parent
e5790ca013
commit
8654206c72
@ -219,6 +219,10 @@ function suggest($type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function match($testvalues, $matchvalues) {
|
function match($testvalues, $matchvalues) {
|
||||||
|
# match only presence of field (if no value given)
|
||||||
|
if(!$testvalues && $matchvalues) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if(!is_array($testvalues)) {
|
if(!is_array($testvalues)) {
|
||||||
$testvalues = array($testvalues);
|
$testvalues = array($testvalues);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user