bugfix
This commit is contained in:
parent
df3a6e3747
commit
3d2310f731
|
@ -27,10 +27,14 @@ function getFavIcon($id) {
|
|||
$html = @file_get_contents($url, false, $context);
|
||||
}
|
||||
|
||||
$dom = new DOMDocument();
|
||||
if ($html !== false) {
|
||||
|
||||
$dom = new DOMDocument();
|
||||
if ($html !== false) {
|
||||
try {
|
||||
@$dom->loadHTML($html);
|
||||
}
|
||||
} catch (Throwable $e) {}
|
||||
}
|
||||
|
||||
|
||||
$xpath = new DOMXPath($dom);
|
||||
|
||||
|
|
Loading…
Reference in New Issue