From 309ad524148e6a87c0bda254f3876118599605ec Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 9 Sep 2013 15:10:30 +0200 Subject: [PATCH] search fix --- webui/model/search/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 4342d976..d02326dc 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -292,7 +292,7 @@ class ModelSearchSearch extends Model { else if(isset($data['has_attachment']) && $data['has_attachment'] == 1) { $attachment = "attachments > 0 AND "; } - if(isset($data['id'])) { + if(isset($data['id']) && $data['id']) { $data['id'] = preg_replace("/ /", "," , substr($data['id'], 1, strlen($data['id']))); $id = " id IN (" . $data['id'] . ") AND "; }