Avoid passing null as hastack to `strpos` in library/vendor/Zend/Form::_dissolveArrayValue()

This commit is contained in:
raviks789 2022-06-07 14:07:44 +02:00
parent 777d146ba1
commit f33566be1c
1 changed files with 1 additions and 1 deletions

View File

@ -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), ']');