summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-12-15 22:39:14 -0500
committerLoui Chang <louipc.ist@gmail.com>2009-12-15 22:39:14 -0500
commitb51458f7526341374d39e1ea86927ec61502a01c (patch)
treec8e3245289f913d35deb1bcdce68f0d3d29213c2
parent9c1781f03d085e38dc6ee796c7aa97c995b53ce4 (diff)
downloadaurweb-b51458f7526341374d39e1ea86927ec61502a01c.tar.xz
packages.php: Check if _GET value is set before assuming a default.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-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 f882ce5..7444731 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"]);
}