silence gzdecode() errors

This commit is contained in:
Andrew Dolgov 2013-03-23 09:21:57 +04:00
parent 68fb3c955a
commit 9e7f1f12f4
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@
"ja_JP" => "日本語 (Japanese)", "ja_JP" => "日本語 (Japanese)",
"lv_LV" => "Latviešu", "lv_LV" => "Latviešu",
"nb_NO" => "Norwegian bokmål", "nb_NO" => "Norwegian bokmål",
"nl_NL" => "Dutch", "nl_NL" => "Dutch",
"pl_PL" => "Polski", "pl_PL" => "Polski",
"ru_RU" => "Русский", "ru_RU" => "Русский",
"pt_BR" => "Portuguese/Brazil", "pt_BR" => "Portuguese/Brazil",
@ -360,7 +360,7 @@
$data = @file_get_contents($url); $data = @file_get_contents($url);
$gzdecoded = gzdecode($data); @$gzdecoded = gzdecode($data);
if ($gzdecoded) $data = $gzdecoded; if ($gzdecoded) $data = $gzdecoded;
if (!$data && function_exists('error_get_last')) { if (!$data && function_exists('error_get_last')) {