From b6e012ea3bf5ab6c96048d5534f156e57ccfb6e8 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Fri, 12 Mar 2010 16:47:48 -0500 Subject: packages.php: Only sort by vote if search keyword isn't set. People entering explicit search terms would expect alphabetical order. Signed-off-by: Loui Chang --- web/html/packages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html') diff --git a/web/html/packages.php b/web/html/packages.php index 7444731..cf241cb 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -70,7 +70,7 @@ if (isset($_GET['ID'])) { package_details($_GET['ID'], $_COOKIE["AURSID"]); } } else { - if (!isset($_GET['SB'])) { + if (!isset($_GET['K'])) { $_GET['SB'] = 'v'; $_GET['SO'] = 'd'; } -- cgit v1.2.3-54-g00ecf