web: fix a couple of PHP warnings

This commit is contained in:
David Anderson 2014-09-24 09:38:19 -07:00
parent 93f7def3fa
commit 514a132bfc
2 changed files with 2 additions and 3 deletions

View File

@ -397,8 +397,7 @@ function show_user_summary_public($user) {
if ($user->donated == 1) {
if (file_exists("../project/donations.inc")) {
require_once("../project/donations.inc");
$x .= DONATION_LINK;
row2(tra("Donor"), $x);
row2(tra("Donor"), DONATION_LINK);
}
}
}

View File

@ -76,7 +76,7 @@ page_head(tra("%1 Message boards", PROJECT));
show_forum_header($user);
if (FORUM_QA_MERGED_MODE === true){
if (defined('FORUM_QA_MERGED_MODE') && FORUM_QA_MERGED_MODE){
$categories = BoincCategory::enum("true order by orderID");
} else {
echo "<p>"