From b91c899f75bf98572f122324bf49654dfcadd7f1 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 23 Jan 2022 18:05:19 +0100 Subject: [PATCH] Fixed attachment type search query assembly Signed-off-by: Janos SUTO --- webui/model/search/search.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index db489a16..20622271 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -115,9 +115,8 @@ class ModelSearchSearch extends Model { $i = 0; foreach($data['match'] as $k => $v) { if($v == "@attachment_types") { - list($k, $v) = each($data['match']); $i++; - if($v == "any") { + if($data['match'][$i] == "any") { $data['match'][$i-1] = ""; $data['match'][$i] = ""; }