diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 9612c73a..0b31618f 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";