From 39c2de721af4bbb779b2e18eb2d571a0578e0359 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Wed, 19 Mar 2025 15:17:34 +0100 Subject: [PATCH] Fix warnings --- htdocs/includes/odtphp/odf.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php index b8b354bc465..70ff59da7bc 100644 --- a/htdocs/includes/odtphp/odf.php +++ b/htdocs/includes/odtphp/odf.php @@ -405,6 +405,7 @@ class Odf while (strlen($tempHtml) > 0) { // Check if the string includes a html tag + $matches = array(); if (preg_match_all(self::FIND_TAGS_REGEX, $tempHtml, $matches)) { $tagOffset = strpos($tempHtml, $matches[0][0]); // Check if the string starts with the html tag @@ -417,6 +418,7 @@ class Odf $tempHtml = substr($tempHtml, $tagOffset); } // Extract the attribute data from the html tag + $explodedAttributes = array(); preg_match_all('/([0-9A-Za-z]+(?:="[0-9A-Za-z\:\-\s\,\;\#]*")?)+/', $matches[2][0], $explodedAttributes); $explodedAttributes = array_filter($explodedAttributes[0]); $attributes = array();