fixed bug #2761 problems switching from second page of search and from My Packages/Orphans

this should fix the set of bugs in this category all at once
This commit is contained in:
pjmattal 2005-06-10 05:28:49 +00:00
parent c7e4f5c7fa
commit b1d5d74e84

View file

@ -506,6 +506,21 @@ function pkg_search_page($SID="") {
# reset the offset to zero if they hit Go
#
$_REQUEST["do_MyPackages"] = 0;
$_REQUEST["do_Orphans"] = 0;
$O = 0;
}
if ($_REQUEST["do_MyPackages"] && $_REQUEST["do_MyPackages"] != 1) {
# reset the offset to zero if they hit My Packages
#
$_REQUEST["do_Search"] = 0;
$_REQUEST["do_Orphans"] = 0;
$O = 0;
}
if ($_REQUEST["do_Orphans"] && $_REQUEST["do_Orphans"] != 1) {
# reset the offset to zero if they hit Orphans
#
$_REQUEST["do_Search"] = 0;
$_REQUEST["do_MyPackages"] = 0;
$O = 0;
}
$_REQUEST["O"] = $O; # so that pkg_search_results() works