Avoid passing null as hastack to `strpos` in library/vendor/Zend/Form::_dissolveArrayValue()
This commit is contained in:
parent
777d146ba1
commit
f33566be1c
|
@ -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…
Reference in New Issue