Permalink
Browse files

is_connected will not output a standard error, instead only the error…

… html comment will be done.
  • Loading branch information...
1 parent 2d04ee3 commit 807f362e32be6e3d191ce81a90522c5010e775ba @balupton balupton committed Nov 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/core/functions/_url.funcs.php
@@ -136,7 +136,7 @@ function regen_url ( $params = NULL, $amp = '&' ) {
*/
function is_connected ( $url = 'www.google.com' ) {
$result = false;
- $connected = fsockopen($url, 80, $errno, $errstr, 5);
+ $connected = @fsockopen($url, 80, $errno, $errstr, 5);
if ( $connected ){
$result = true;
fclose($connected);

0 comments on commit 807f362

Please sign in to comment.