From ce315cdf4d374d961d094e12cbc3ef326fcd026d Mon Sep 17 00:00:00 2001 From: steinm Date: Tue, 6 Dec 2011 12:23:06 +0000 Subject: [PATCH] - behave propperly if 'all categories' has been selected --- op/op.Search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/op/op.Search.php b/op/op.Search.php index afe08e36c..db8cdeaab 100644 --- a/op/op.Search.php +++ b/op/op.Search.php @@ -215,7 +215,8 @@ if (isset($_GET["expired"])){ $categories = array(); if(isset($_GET['categoryids']) && $_GET['categoryids']) { foreach($_GET['categoryids'] as $catid) { - $categories[] = $dms->getDocumentCategory($catid); + if($catid > 0) + $categories[] = $dms->getDocumentCategory($catid); } }