diff --git a/include/functions.php b/include/functions.php
index f82ba69..cf979db 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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);
     }