PHP 8.1 compatibility
This commit is contained in:
parent
01d87e17fb
commit
3bcd4b5370
|
|
@ -438,7 +438,7 @@ class TemplateProcessor
|
||||||
if (is_null($value) && isset($inlineValue)) {
|
if (is_null($value) && isset($inlineValue)) {
|
||||||
$value = $inlineValue;
|
$value = $inlineValue;
|
||||||
}
|
}
|
||||||
if (!preg_match('/^([0-9]*(cm|mm|in|pt|pc|px|%|em|ex|)|auto)$/i', $value)) {
|
if (!preg_match('/^([0-9]*(cm|mm|in|pt|pc|px|%|em|ex|)|auto)$/i', isset($value) ? $value : '')) {
|
||||||
$value = null;
|
$value = null;
|
||||||
}
|
}
|
||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue