From 486bb3bc65365956ef8ce6b130bc6ae4a4ee8d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Mon, 11 Dec 2023 12:36:54 +0100 Subject: [PATCH] php V8 Warning --- htdocs/includes/odtphp/odf.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php index 98cdcf0a2fd..ce72014c17d 100644 --- a/htdocs/includes/odtphp/odf.php +++ b/htdocs/includes/odtphp/odf.php @@ -1022,6 +1022,8 @@ IMG; $matches = array(); preg_match($searchreg, $this->contentXml, $matches); $this->contentXml = preg_replace($searchreg, "", $this->contentXml); - return $matches[1]; + if ($matches) + return $matches[1]; + return ""; } -} \ No newline at end of file +}