mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
ArrayCustomVariablesFilter: check for type (PHP81)
This commit is contained in:
parent
ef4068ebde
commit
f35ded85fb
@ -8,6 +8,7 @@ class ArrayCustomVariablesFilter extends CustomVariablesFilter
|
|||||||
{
|
{
|
||||||
return parent::match($type, $name, $object)
|
return parent::match($type, $name, $object)
|
||||||
&& $object !== null
|
&& $object !== null
|
||||||
|
&& isset($object->datatype)
|
||||||
&& (
|
&& (
|
||||||
preg_match('/DataTypeArray[\w]*$/', $object->datatype)
|
preg_match('/DataTypeArray[\w]*$/', $object->datatype)
|
||||||
|| (
|
|| (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user