summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-02-22 13:06:55 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-02-22 18:33:27 +0100
commitc39183c3ee7eb1b127e981d1f023a13fd88cbea9 (patch)
tree63d7e54849de0f702d65117cf69d56b7dc0b701c /web/lib
parent4b2b8afb8aad83588cd9d0cf9af28acfb5d3bb74 (diff)
downloadaur-c39183c3ee7eb1b127e981d1f023a13fd88cbea9.tar.gz
aur-c39183c3ee7eb1b127e981d1f023a13fd88cbea9.tar.xz
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.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';