summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-12-16 04:39:14 +0100
committerLoui Chang <louipc.ist@gmail.com>2009-12-16 04:39:14 +0100
commitb51458f7526341374d39e1ea86927ec61502a01c (patch)
treec8e3245289f913d35deb1bcdce68f0d3d29213c2 /web/html/packages.php
parent9c1781f03d085e38dc6ee796c7aa97c995b53ce4 (diff)
downloadaur-b51458f7526341374d39e1ea86927ec61502a01c.tar.gz
aur-b51458f7526341374d39e1ea86927ec61502a01c.tar.xz
packages.php: Check if _GET value is set before assuming a default.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index f882ce5f..74447313 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -70,8 +70,10 @@ if (isset($_GET['ID'])) {
package_details($_GET['ID'], $_COOKIE["AURSID"]);
}
} else {
- $_GET['SB'] = 'v';
- $_GET['SO'] = 'd';
+ if (!isset($_GET['SB'])) {
+ $_GET['SB'] = 'v';
+ $_GET['SO'] = 'd';
+ }
pkg_search_page($_COOKIE["AURSID"]);
}