BOINC web site: fix PHP warnings in help pages

This commit is contained in:
David Anderson 2014-10-03 21:06:50 -07:00
parent b27765f6d3
commit 66e7f59206
1 changed files with 7 additions and 3 deletions

View File

@ -102,8 +102,8 @@ function email_contact($vol) {
";
}
$send_email = $_GET['send_email'];
$rate = $_GET['rate'];
$send_email = get_str2('send_email');
$rate = get_str2('rate');
session_set_cookie_params(86400*365);
session_start();
$uid = session_id();
@ -201,7 +201,11 @@ if ($send_email) {
echo "</td></tr></table><p>\n";
echo "<table class=box cellpadding=8 width=100%><tr><td>";
$rating = rating_vol_auth($vol->id, $uid);
if (!$rating) $rating->rating = -1;
if (!$rating) {
$rating = new StdClass;
$rating->rating = -1;
$rating->comment = "";
}
show_rating($vol, $rating);
echo "</td></tr></table>\n";