mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +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'];
|
||||
foreach($_GET['category'] as $catid) {
|
||||
if($catid) {
|
||||
$cat = $dms->getDocumentCategory($catid);
|
||||
$categories[] = $cat;
|
||||
$categorynames[] = $cat->getName();
|
||||
if($cat = $dms->getDocumentCategory($catid)) {
|
||||
$categories[] = $cat;
|
||||
$categorynames[] = $cat->getName();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user