summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-06-10 05:28:49 +0000
committerpjmattal <pjmattal>2005-06-10 05:28:49 +0000
commitb1d5d74e84be92a231641637bcaa67f58b1963ea (patch)
tree5df2f4e0bae39a5ecb5046599e635ca93295a8f5 /web
parentc7e4f5c7fa8e4ba9e9503f70a3334d33f31b78e1 (diff)
downloadaurweb-b1d5d74e84be92a231641637bcaa67f58b1963ea.tar.xz
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
Diffstat (limited to 'web')
-rw-r--r--web/lib/pkgfuncs.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index b0743cc..b3e51d8 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -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