Browse files

Fixed bug in model validation translate

  • Loading branch information...
1 parent 46bce1a commit 77f6d88a9e6819f4e69f970d13082b2986595c32 @tigrang tigrang committed Apr 26, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Model/Model.php
View
4 lib/Cake/Model/Model.php
@@ -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);

0 comments on commit 77f6d88

Please sign in to comment.