Skip to content

Commit

Permalink
Follow up to 9b927c4, use Arr::flatten to force array values to alway…
Browse files Browse the repository at this point in the history
…s work properly with implode
  • Loading branch information
Woody Gilk committed Jun 8, 2010
1 parent 87f095c commit a0cc824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/kohana/validate.php
Expand Up @@ -986,7 +986,7 @@ public function errors($file = NULL, $translate = TRUE)
if (is_array($values[':value']))
{
// All values must be strings
$values[':value'] = implode(', ', $values[':values']);
$values[':value'] = implode(', ', Arr::flatten($values[':values']));
}

if ($params)
Expand All @@ -996,7 +996,7 @@ public function errors($file = NULL, $translate = TRUE)
if (is_array($value))
{
// All values must be strings
$value = implode(', ', $value);
$value = implode(', ', Arr::flatten($value));
}

// Check if a label for this parameter exists
Expand Down

0 comments on commit a0cc824

Please sign in to comment.