summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib/pkgfuncs.inc')
-rw-r--r--web/lib/pkgfuncs.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index fd855ac1..53868b64 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -491,7 +491,12 @@ function pkg_search_page($SID="") {
}
if (isset($_GET['outdated'])) {
- $q .= "AND OutOfDateTS IS NOT NULL ";
+ if ($_GET['outdated'] == 'on') {
+ $q .= "AND OutOfDateTS IS NOT NULL ";
+ }
+ elseif ($_GET['outdated'] == 'off') {
+ $q .= "AND OutOfDateTS IS NULL ";
+ }
}
$order = $_GET["SO"] == 'd' ? 'DESC' : 'ASC';