FIX: Prevent creation of double AND condition when constructing search filter [t24393]

git-svn-id: http://svn.resourcespace.com/svn/rs/trunk@16772 c08608d7-6e46-0410-86ca-f2a6f1370df5
This commit is contained in:
mbazan 2021-01-19 09:15:13 +00:00
parent 5565397478
commit 21ea4122f1
1 changed files with 5 additions and 4 deletions

View File

@ -1097,12 +1097,13 @@ function search_filter($search,$archive,$restypes,$starsearch,$recent_search_day
}
else
{
$editable_filter .= " AND 0=1";
if ($editable_filter != "")
{
$editable_filter .= " AND ";
}
$editable_filter .= " 0=1";
}
}
$updated_editable_filter = hook("modifysearcheditable","",array($editable_filter,$userref));