Fixed attachment type search query assembly

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-01-23 18:05:19 +01:00
parent 90e06de835
commit b91c899f75

View File

@ -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] = "";
}