summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2010-03-13 06:03:00 +0100
committerLoui Chang <louipc.ist@gmail.com>2010-03-13 06:03:00 +0100
commitd53901eecd1472d5519391f9d280e5c7cec75a40 (patch)
tree6f3c6a2dc1a7ba84b3331b686b9b5521afcf03ce
parenta298948d926aa0ae1459ee9db8ca8bb938f2dc97 (diff)
downloadaur-d53901eecd1472d5519391f9d280e5c7cec75a40.tar.gz
aur-d53901eecd1472d5519391f9d280e5c7cec75a40.tar.xz
packages.php: Fix explicit sorting when search keywords aren't specified.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-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 cf241cb2..2553590c 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['K'])) {
+ if (!isset($_GET['K']) && !isset($_GET['SB'])) {
$_GET['SB'] = 'v';
$_GET['SO'] = 'd';
}