Quit when message is empty, similar to #9681

2022.09-rc
Adam Clark 2021-02-23 10:16:59 -08:00
rodzic 2daa783f15
commit 8248f6942f
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -1755,6 +1755,9 @@ class Probe
public static function getFeedLink(string $url, string $body)
{
$doc = new DOMDocument();
if (empty($body)) {
return '';
}
if (!@$doc->loadHTML($body)) {
return false;
}