PHP/Steam/SGS: Supressing output of simplexml_load_file() errors.
This commit is contained in:
parent
dde46b0b7c
commit
f33eda3277
|
@ -25,7 +25,7 @@ echo stgrp_status($gruppe);
|
|||
function stgrp_status($group = false){
|
||||
if(!$group){ return "<div class=\"blockrow\"><b>No group set.</b></div>"; }
|
||||
|
||||
$url = simplexml_load_file("http://steamcommunity.com/groups/".$group."/memberslistxml");
|
||||
$url = @simplexml_load_file("http://steamcommunity.com/groups/".$group."/memberslistxml");
|
||||
if(!$url){
|
||||
return "<div class=\"blockrow\"><b>Steamcommunity appears to be down.</b></div>";
|
||||
}
|
||||
|
|
Reference in New Issue