Quit earlier in ProbeURL->getFeedLink if body is empty
This commit is contained in:
parent
995d53ebfc
commit
77b24a0b66
@ -1754,10 +1754,11 @@ class Probe
|
||||
*/
|
||||
public static function getFeedLink(string $url, string $body)
|
||||
{
|
||||
$doc = new DOMDocument();
|
||||
if (empty($body)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
$doc = new DOMDocument();
|
||||
if (!@$doc->loadHTML($body)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user