diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-02-22 13:06:55 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-02-22 18:33:27 +0100 |
commit | c39183c3ee7eb1b127e981d1f023a13fd88cbea9 (patch) | |
tree | 63d7e54849de0f702d65117cf69d56b7dc0b701c /web/lib | |
parent | 4b2b8afb8aad83588cd9d0cf9af28acfb5d3bb74 (diff) |
Add ability to search for non-out-of-date packages (fixes FS#17896).
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/pkgfuncs.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index fd855ac..53868b6 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'; |