From 77f6d88a9e6819f4e69f970d13082b2986595c32 Mon Sep 17 00:00:00 2001 From: Tigran Gabrielyan Date: Thu, 26 Apr 2012 21:20:11 -0700 Subject: [PATCH] Fixed bug in model validation translate --- lib/Cake/Model/Model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index dfcd14508..d5ca5f0c6 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -3191,7 +3191,9 @@ class Model extends Object implements CakeEventListener { } 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);