Steam/SGS: Remove error_reporting() handling on cURL version
This commit is contained in:
parent
9a40fa0b45
commit
86494ac34e
|
@ -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";
|
||||
|
||||
|
|
Reference in New Issue