MadMakz
/
Misc-Tools
Archived
1
0
Fork 0

Steam/SGS: Remove error_reporting() handling on cURL version

This commit is contained in:
MadMakz 2012-09-26 15:31:49 +02:00
parent 9a40fa0b45
commit 86494ac34e
1 changed files with 0 additions and 4 deletions

View File

@ -25,14 +25,10 @@ echo stgrp_status($gruppe);
function stgrp_status($group = false){
if(!$group){ return "<div class=\"blockrow\"><b>No group set.</b></div>"; }
$error_reporting = error_reporting();
error_reporting(0);
$url = file_get_contents_curl('http://steamcommunity.com/groups/'.$group, "SteamGroupStatus Query Script");
if($url["header"]["http_code"] != "200"){
error_reporting($error_reporting);
return "<div class=\"blockrow\"><b>Steamcommunity appears to be down.</b></div>";
}
error_reporting($error_reporting);
$return = "<div class=\"blockrow\">\n";