mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
check if passed categories actually exist
This commit is contained in:
parent
a4afc1cfa7
commit
8fdc151198
|
@ -69,9 +69,10 @@ if($fullsearch) {
|
||||||
$category = $_GET['category'];
|
$category = $_GET['category'];
|
||||||
foreach($_GET['category'] as $catid) {
|
foreach($_GET['category'] as $catid) {
|
||||||
if($catid) {
|
if($catid) {
|
||||||
$cat = $dms->getDocumentCategory($catid);
|
if($cat = $dms->getDocumentCategory($catid)) {
|
||||||
$categories[] = $cat;
|
$categories[] = $cat;
|
||||||
$categorynames[] = $cat->getName();
|
$categorynames[] = $cat->getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user