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

Commit

Permalink
Fix array_fill error
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell committed Mar 20, 2013
1 parent e3ff016 commit ff6c032
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CollectionInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ public function isValid()
{
$valid = true;

$inputCollection = array_fill(0, $this->getCount(), $this->validationGroup ?: array_keys($this->inputs));
if ($this->getCount() < 1) {
return $valid;
}

$inputCollection = array_fill(0, $this->getCount() , $this->validationGroup ?: array_keys($this->inputs));

foreach ($inputCollection as $key => $inputs) {
$this->data = array();
Expand Down

0 comments on commit ff6c032

Please sign in to comment.