Added the ability to search for presence of fields

This commit is contained in:
Erik Thuning 2019-07-16 14:45:58 +02:00
parent e5790ca013
commit 8654206c72

@ -219,6 +219,10 @@ function suggest($type) {
}
function match($testvalues, $matchvalues) {
# match only presence of field (if no value given)
if(!$testvalues && $matchvalues) {
return true;
}
if(!is_array($testvalues)) {
$testvalues = array($testvalues);
}