mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-17 20:41:00 +01:00
bugfix
This commit is contained in:
parent
df3a6e3747
commit
3d2310f731
@ -27,10 +27,14 @@ function getFavIcon($id) {
|
|||||||
$html = @file_get_contents($url, false, $context);
|
$html = @file_get_contents($url, false, $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dom = new DOMDocument();
|
|
||||||
if ($html !== false) {
|
$dom = new DOMDocument();
|
||||||
|
if ($html !== false) {
|
||||||
|
try {
|
||||||
@$dom->loadHTML($html);
|
@$dom->loadHTML($html);
|
||||||
}
|
} catch (Throwable $e) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$xpath = new DOMXPath($dom);
|
$xpath = new DOMXPath($dom);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user