From 3a257b617203f31b58368720b1cf83fb7cad4942 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 11 May 2025 11:23:25 +0200 Subject: [PATCH 1/2] Fix 500 error --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 018f4dc799a..0e8d7ae4364 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -3282,7 +3282,7 @@ class Item } $dom = new \DOMDocument(); - if (!@$dom->loadHTML($html)) { + if (empty ($html) || !@$dom->loadHTML($html)) { return $html; } From 054a280d33e57c22413253594441146f9d65f60a Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 11 May 2025 11:37:09 +0200 Subject: [PATCH 2/2] Fix PHP-CS --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 0e8d7ae4364..985c1d0b9f0 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -3282,7 +3282,7 @@ class Item } $dom = new \DOMDocument(); - if (empty ($html) || !@$dom->loadHTML($html)) { + if (empty($html) || !@$dom->loadHTML($html)) { return $html; }