From b1fe84d39702a0f613625c23dd6ff1d909ac6c68 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Thu, 28 Feb 2008 12:00:02 -0500 Subject: Fixed bug where search resets when browsing orphans Signed-off-by: Loui Chang Signed-off-by: Simo Leone --- web/lib/pkgfuncs.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 9612c73..0b31618 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -631,7 +631,7 @@ function pkg_search_page($SID="") { $_REQUEST["do_Orphans"] = 0; $O = 0; } - if ($_REQUEST["do_Orphans"] && $_REQUEST["do_Orphans"] != 1) { + if (!empty($_REQUEST['do_Orphans']) && $_REQUEST['do_Orphans'] != 1) { # reset the offset to zero if they hit Orphans # $_REQUEST["do_Search"] = 0; @@ -1123,7 +1123,12 @@ function pkg_search_page($SID="") { # RIGHT print " "; if (mysql_num_rows(db_query($qnext, $dbh))) { - print "" . __("More") . ""; + print "" . + __("More") . ""; } print " \n"; print " \n"; -- cgit v1.2.3-70-g09d2