Commit b51458f7 authored by Loui Chang's avatar Loui Chang
Browse files

packages.php: Check if _GET value is set before assuming a default.



Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent 9c1781f0
......@@ -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"]);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment