summaryrefslogtreecommitdiff
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2010-03-12 16:47:48 -0500
committerLoui Chang <louipc.ist@gmail.com>2010-03-12 16:47:48 -0500
commitb6e012ea3bf5ab6c96048d5534f156e57ccfb6e8 (patch)
tree8b11b9d65ca1d1f6034f73d84906b44f2f78dfbc /web/html/packages.php
parent5091b11dad08ee7039dd62aa35d9b10b29f068a8 (diff)
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 <louipc.ist@gmail.com>
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php2
1 files changed, 1 insertions, 1 deletions
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';
}