php V8 Warning

This commit is contained in:
Charlène Benke 2023-12-11 12:36:54 +01:00 committed by GitHub
parent cdecce8485
commit 486bb3bc65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 "";
}
}
}