diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-12-16 04:39:14 +0100 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-12-16 04:39:14 +0100 |
commit | b51458f7526341374d39e1ea86927ec61502a01c (patch) | |
tree | c8e3245289f913d35deb1bcdce68f0d3d29213c2 /web | |
parent | 9c1781f03d085e38dc6ee796c7aa97c995b53ce4 (diff) | |
download | aur-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')
-rw-r--r-- | web/html/packages.php | 6 |
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"]); } |