From b51458f7526341374d39e1ea86927ec61502a01c Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Tue, 15 Dec 2009 22:39:14 -0500 Subject: packages.php: Check if _GET value is set before assuming a default. Signed-off-by: Loui Chang --- web/html/packages.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web/html') 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"]); } -- cgit v1.2.3-24-g4f1b