user web: fix PHP warning when netsoft stats are down

svn path=/trunk/boinc/; revision=21422
This commit is contained in:
Rytis Slatkevičius 2010-05-09 08:42:51 +00:00
parent a4de51d667
commit ea8fd996a0
2 changed files with 7 additions and 1 deletions

View File

@ -3424,3 +3424,9 @@ David 8 May 2010
client/
net_stats.cpp
Rytis 9 May 2010
- user web: fix PHP warning when netsoft stats are down
html/inc/
user.inc

View File

@ -76,7 +76,7 @@ function parse_user($f, $user) {
function get_other_projects($user) {
$cpid = md5($user->cross_project_id . $user->email_addr);
$url = "http://boinc.netsoft-online.com/get_user.php?cpid=$cpid";
$f = fopen($url, "r");
$f = @fopen($url, "r");
if (!$f) {
return $user;
}