Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Removed early bail for empty arrays #4961

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions library/Zend/Form/Element/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,6 @@ public function populateValues($data)
));
}

// Can't do anything with empty data
if (empty($data)) {
return;
}

if (count($data) < $this->getCount()) {
if (!$this->allowRemove) {
throw new Exception\DomainException(sprintf(
Expand Down