MadMakz
/
Misc-Tools
Archived
1
0
Fork 0

PHP/Steam/SGS: Supressing output of simplexml_load_file() errors.

This commit is contained in:
MadMakz 2012-10-15 20:26:35 +02:00
parent dde46b0b7c
commit f33eda3277
1 changed files with 1 additions and 1 deletions

View File

@ -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>";
}