diff --git a/html/inc/forum_db.inc b/html/inc/forum_db.inc index 3cf5fd53ce..582179528b 100644 --- a/html/inc/forum_db.inc +++ b/html/inc/forum_db.inc @@ -296,7 +296,7 @@ class BoincNotify { $db = BoincDb::get(); return $db->delete($this, 'notify'); } - function delete_aux($clause) { + static function delete_aux($clause) { $db = BoincDb::get(); $db->delete_aux('notify', $clause); } diff --git a/html/inc/team.inc b/html/inc/team.inc index 48de281bdd..60f1507a86 100644 --- a/html/inc/team.inc +++ b/html/inc/team.inc @@ -418,12 +418,10 @@ function team_edit_form($team, $label, $url) { echo "
\n"; if ($team) { echo "id>\n"; - } - if ($team->seti_id) { - echo "

".tra("WARNING: this is a BOINC-wide team. If you make changes here, they will soon be overwritten. Edit the %1BOINC-wide team%2 instead.", "", "") - ." -

- "; + if ($team->seti_id) { + echo "

".tra("WARNING: this is a BOINC-wide team. If you make changes here, they will soon be overwritten. Edit the %1BOINC-wide team%2 instead.", "", "") + ."

"; + } } echo '

@@ -433,34 +431,34 @@ function team_edit_form($team, $label, $url) { start_table(); row2(tra('Team name, text version').'
'.tra('Don\'t use HTML tags.').'', - "" + "" ); row2(tra('Team name, HTML version').'
'.tra('You may use %1limited HTML tags%2.', '', '').' '.tra('If you don\'t know HTML, leave this box blank.').'', - "name_html)."\">" + "name_html:""))."\">" ); row2(tra('URL of team web page, if any').':
('.tra('without "http://"').') '.tra('This URL will be linked to from the team\'s page on this site.'), - "" + "" ); row2(tra('Description of team').':
'.tra('You may use %1limited HTML tags%2.', '', '').' ', - "" + "" ); - row2(tra('Type of team').':', team_type_select($team->type)); + row2(tra('Type of team').':', team_type_select($team?$team->type:null)); row2_init(tra('Country'), "\n"; - $x = $team->joinable?"checked":""; + $x = ($team && $team->joinable)?"checked":""; row2(tra("Accept new members?"), ""); row2("", "" diff --git a/html/user/team_change_founder_form.php b/html/user/team_change_founder_form.php index 3a0c64d27e..2a2583f73a 100644 --- a/html/user/team_change_founder_form.php +++ b/html/user/team_change_founder_form.php @@ -104,10 +104,10 @@ if ($navailable_users > 0) { end_table(); echo ""; } else { - echo ' - ".tra("There are no users to transfer team to.")." + echo " + ".tra("There are no users to transfer team to.")." - '; + "; end_table(); } echo "";