From f33566be1c5138ee1e43ac5b4a23c29700039716 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 7 Jun 2022 14:07:44 +0200 Subject: [PATCH] Avoid passing null as hastack to `strpos` in library/vendor/Zend/Form::_dissolveArrayValue() --- library/vendor/Zend/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/vendor/Zend/Form.php b/library/vendor/Zend/Form.php index 213ad301f..91987ac53 100644 --- a/library/vendor/Zend/Form.php +++ b/library/vendor/Zend/Form.php @@ -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), ']');