diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 5c46b371..1f186cb3 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -142,6 +142,9 @@ class ModelSearchSearch extends Model { if($v == "any") { $data['match'][$i-1] = ""; $data['match'][$i] = ""; + } + + if($a == '') { $a = "attachments > 0 AND "; } }