]> git.mxchange.org Git - friendica.git/commitdiff
Fix 500 error
authorPhilipp <admin@philipp.info>
Sun, 11 May 2025 09:23:25 +0000 (11:23 +0200)
committerPhilipp <admin@philipp.info>
Sun, 11 May 2025 09:23:25 +0000 (11:23 +0200)
src/Model/Item.php

index 018f4dc799a203ade9fa82e1e5ef3d7ff76fc4a6..0e8d7ae4364947b49e458b487f50ee3b0e046f8a 100644 (file)
@@ -3282,7 +3282,7 @@ class Item
                }
 
                $dom = new \DOMDocument();
-               if (!@$dom->loadHTML($html)) {
+               if (empty ($html) || !@$dom->loadHTML($html)) {
                        return $html;
                }