mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
Merge pull request #4808 from Icinga/fix/strpos-null-Zend_Form-dissolveArrayValue
Avoid passing null as hastack to `strpos` in library/vendor/Zend/Form::_dissolveArrayValue()
This commit is contained in:
commit
e3219be4fa
2
library/vendor/Zend/Form.php
vendored
2
library/vendor/Zend/Form.php
vendored
@ -2109,7 +2109,7 @@ class Zend_Form implements Iterator, Countable, Zend_Validate_Interface
|
||||
protected function _dissolveArrayValue($value, $arrayPath)
|
||||
{
|
||||
// As long as we have more levels
|
||||
while ($arrayPos = strpos($arrayPath, '[')) {
|
||||
while ($arrayPos = strpos($arrayPath ?? '', '[')) {
|
||||
// Get the next key in the path
|
||||
$arrayKey = trim(substr($arrayPath, 0, $arrayPos), ']');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user