Silence pingomatic fsockopen. Props Mark Jaquith. fixes #2522

git-svn-id: http://svn.automattic.com/wordpress/trunk@3917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-06-24 06:05:12 +00:00
parent c8e7e66ee7
commit f12797ca96
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ $http_request .= "\r\n";
$http_request .= $query_string;
$response = '';
if( false !== ( $fs = fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) {
if ( false !== ( $fs = @fsockopen('api.pingomatic.com', 80, $errno, $errstr, 5) ) ) {
fwrite($fs, $http_request);
while ( !feof($fs) )
$response .= fgets($fs, 1160); // One TCP-IP packet