block error output when fetching favicons with CURL
This commit is contained in:
parent
c798704b29
commit
9933172497
|
@ -215,7 +215,8 @@
|
||||||
if (!file_exists($icon_file)) {
|
if (!file_exists($icon_file)) {
|
||||||
|
|
||||||
if (USE_CURL_FOR_ICONS) {
|
if (USE_CURL_FOR_ICONS) {
|
||||||
//error_reporting(0);
|
error_reporting(0);
|
||||||
|
|
||||||
$ch = curl_init($icon_url);
|
$ch = curl_init($icon_url);
|
||||||
$fp = fopen($icon_file, "w");
|
$fp = fopen($icon_file, "w");
|
||||||
|
|
||||||
|
@ -228,7 +229,7 @@
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
//error_reporting (DEFAULT_ERROR_LEVEL);
|
error_reporting (DEFAULT_ERROR_LEVEL);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue