\n";
foreach ($ids as $id) {
diff --git a/html/user/team_email_list.php b/html/user/team_email_list.php
index 5963cf4c35..303dd1dbb6 100644
--- a/html/user/team_email_list.php
+++ b/html/user/team_email_list.php
@@ -34,6 +34,7 @@ if (DISABLE_TEAMS) {
}
}
+BoincDb::get(true);
if ($xml) {
$creditonly = get_int('creditonly', true);
xml_header();
@@ -52,7 +53,7 @@ if ($xml) {
//$users = BoincUser::enum("teamid=$team->id");
foreach($users as $user) {
show_team_member($user, $show_email, $creditonly);
- }
+ }
echo "\n";
exit();
}
@@ -81,7 +82,7 @@ foreach($users as $user) {
$e = $user->send_email?"$user->email_addr":"";
table_row(user_links($user, BADGE_HEIGHT_MEDIUM), $e, format_credit($user->total_credit), format_credit($user->expavg_credit), $user->country);
}
-}
+}
if (!$plain) {
end_table();
echo "".tra("Show as plain text")."
";
diff --git a/html/user/team_lookup.php b/html/user/team_lookup.php
index 718894bbae..a94a2a2b31 100644
--- a/html/user/team_lookup.php
+++ b/html/user/team_lookup.php
@@ -28,6 +28,8 @@ $format = get_str("format", true);
$team_id = get_int("team_id", true);
$team_ids = get_str("team_ids", true);
+BoincDb::get(true);
+
if ($team_id || $team_ids || ($format == 'xml')) {
require_once ('../inc/xml.inc');
xml_header();