Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit c7eb8ab

Browse files
committed
Fixes zendframework#423: Zend_Validate_NotEmpty::isValid() generates notice
…when validating empty array
1 parent 7fa354d commit c7eb8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Validate/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ protected function _createMessage($messageKey, $value)
264264
*/
265265
protected function _implodeRecursive(array $pieces)
266266
{
267-
$values = '';
267+
$values = array();
268268
foreach ($pieces as $item) {
269269
if (is_array($item)) {
270270
$values[] = $this->_implodeRecursive($item);

0 commit comments

Comments
 (0)