From 0f962a9bcf20204f1fd4995018356062b17947d4 Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 22 Oct 2014 10:17:28 +0200 Subject: [PATCH] search query fix --- webui/model/search/search.php | 3 +++ 1 file changed, 3 insertions(+) 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 "; } }