mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 21:51:32 +00:00
check if passed categories actually exist
This commit is contained in:
parent
a4afc1cfa7
commit
8fdc151198
|
@ -69,12 +69,13 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get the page number to display. If the result set contains more than
|
// Get the page number to display. If the result set contains more than
|
||||||
|
|
Loading…
Reference in New Issue
Block a user