Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed bug in model validation translate

  • Loading branch information...
commit 77f6d88a9e6819f4e69f970d13082b2986595c32 1 parent 46bce1a
@tigrang tigrang authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.