Skip to content
This repository
Browse code

Fixed bug in model validation translate

  • Loading branch information...
commit 77f6d88a9e6819f4e69f970d13082b2986595c32 1 parent 46bce1a
Tigran Gabrielyan authored April 26, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  lib/Cake/Model/Model.php
4  lib/Cake/Model/Model.php
@@ -3191,7 +3191,9 @@ public function invalidFields($options = array()) {
3191 3191
 						}
3192 3192
 						if (!empty($args)) {
3193 3193
 							foreach ($args as $k => $arg) {
3194  
-								$args[$k] = __d($validationDomain, $arg);
  3194
+								if (is_string($arg)) {
  3195
+									$args[$k] = __d($validationDomain, $arg);
  3196
+								}
3195 3197
 							}
3196 3198
 						}
3197 3199
 						$message = __d($validationDomain, $message, $args);

0 notes on commit 77f6d88

Please sign in to comment.
Something went wrong with that request. Please try again.