pass categories can be a list of strings

This commit is contained in:
Uwe Steinmann 2023-04-23 19:01:08 +02:00
parent 28174e3a33
commit 923e235b9a

View File

@ -88,9 +88,13 @@ if($fullsearch) {
$category = $_GET['category'];
foreach($_GET['category'] as $catid) {
if($catid) {
if($cat = $dms->getDocumentCategory($catid)) {
$categories[] = $cat;
$categorynames[] = $cat->getName();
if(is_numeric($catid)) {
if($cat = $dms->getDocumentCategory($catid)) {
$categories[] = $cat;
$categorynames[] = $cat->getName();
}
} else {
$categorynames[] = $catid;
}
}
}