mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Zend: Fix array_walk_recursive
pass by reference error on PHP8
refs #4287
This commit is contained in:
parent
e794967389
commit
6e3ad08aef
4
library/vendor/Zend/Form/Element.php
vendored
4
library/vendor/Zend/Form/Element.php
vendored
@ -598,7 +598,9 @@ class Zend_Form_Element implements Zend_Validate_Interface
|
||||
$valueFiltered = $this->_value;
|
||||
|
||||
if ($this->isArray() && is_array($valueFiltered)) {
|
||||
array_walk_recursive($valueFiltered, array($this, '_filterValue'));
|
||||
array_walk_recursive($valueFiltered, function (&$val, $key) {
|
||||
$this->_filterValue($val, $key);
|
||||
});
|
||||
} else {
|
||||
$this->_filterValue($valueFiltered, $valueFiltered);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user