Merge pull request #14926 from nupplaphil/fix/item_html_empy

Fix empty HTML content loading (500)
This commit is contained in:
Michael Vogel 2025-05-17 17:39:46 +02:00 committed by GitHub
commit 777fc8615c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3330,7 +3330,7 @@ class Item
}
$dom = new \DOMDocument();
if (!@$dom->loadHTML($html)) {
if (empty($html) || !@$dom->loadHTML($html)) {
return $html;
}