diff --git a/html/inc/forum.inc b/html/inc/forum.inc index ce5e740bb3..c1ecff834e 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -1276,4 +1276,17 @@ function remove_subscriptions_thread($userid, $threadid) { BoincNotify::delete_aux("userid=$userid and type=".NOTIFY_SUBSCRIBED_POST." and opaque=$threadid"); } +function parse_forum_cookie() { + $x = array("", ""); + if (isset($_COOKIE['sorting'])) { + $a = explode("|", $_COOKIE['sorting']); + if (array_key_exists(0, $a)) { + $x[0] = $a[0]; + } + if (array_key_exists(1, $a)) { + $x[1] = $a[1]; + } + } + return $x; +} ?> diff --git a/html/inc/team.inc b/html/inc/team.inc index ca6da3e58f..857405daf3 100644 --- a/html/inc/team.inc +++ b/html/inc/team.inc @@ -28,6 +28,13 @@ require_once("../inc/time.inc"); require_once("../inc/stats_sites.inc"); function team_search_form($params) { + if (!$params) { + $params = new StdClass; + $params->keywords = ""; + $params->country = ""; + $params->type = ""; + $params->active = false; + } echo '