diff --git a/html/user/team_search.php b/html/user/team_search.php
index 1a87bcd882..3778695e8e 100644
--- a/html/user/team_search.php
+++ b/html/user/team_search.php
@@ -149,7 +149,7 @@ function search($params) {
$tried = true;
}
if ($params->type and $params->type>1) {
- $list2 = get_teams("type=$type", $params->active);
+ $list2 = get_teams("type=$params->type", $params->active);
//echo "
type matches: ",sizeof($list2);
merge_lists($list2, $list, 2);
$tried = true;