Skip to content

Commit

Permalink
Fixed bug in model validation translate
Browse files Browse the repository at this point in the history
  • Loading branch information
tigrang committed Apr 27, 2012
1 parent 46bce1a commit 77f6d88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Cake/Model/Model.php
Expand Up @@ -3191,7 +3191,9 @@ public function invalidFields($options = array()) {
}
if (!empty($args)) {
foreach ($args as $k => $arg) {
$args[$k] = __d($validationDomain, $arg);
if (is_string($arg)) {
$args[$k] = __d($validationDomain, $arg);
}
}
}
$message = __d($validationDomain, $message, $args);
Expand Down

0 comments on commit 77f6d88

Please sign in to comment.