diff --git a/bridges/CodebergBridge.php b/bridges/CodebergBridge.php index 9515d514..2a450477 100644 --- a/bridges/CodebergBridge.php +++ b/bridges/CodebergBridge.php @@ -403,6 +403,9 @@ EOD; */ private function stripSvg($html) { + if ($html === null) { + return null; + } if ($html->find('svg', 0)) { $html->find('svg', 0)->outertext = ''; }