From ea8fd996a0f9a61b2a41135c5ebd0abf77e7c472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rytis=20Slatkevi=C4=8Dius?= Date: Sun, 9 May 2010 08:42:51 +0000 Subject: [PATCH] user web: fix PHP warning when netsoft stats are down svn path=/trunk/boinc/; revision=21422 --- checkin_notes | 6 ++++++ html/inc/user.inc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 8a8c30ef6f..afc1314318 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/html/inc/user.inc b/html/inc/user.inc index 57fb698167..51aa9e7dbc 100644 --- a/html/inc/user.inc +++ b/html/inc/user.inc @@ -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; }