diff options
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/pkgfuncs.inc | 15 |
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 |