When a Validate rule fails, the value must be removed from the $params list, thanks biakaveron

This commit is contained in:
Woody Gilk 2009-06-19 10:06:28 -05:00
parent 3527dad3b2
commit 0009c72d12

View file

@ -763,11 +763,8 @@ class Kohana_Validate extends ArrayObject {
$rule = 'default';
}
if (is_array($params))
{
// Make a text list of the parameters
$params = implode(', ', $params);
}
// Make a text list of the parameters without the value
$params = implode(', ', array_slice($params, 1));
// Translate the field name
$field = __($this->labels[$field]);