From 7f3fe01504f9f2307254764981884afef25eca26 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 5 Dec 2016 16:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BValidate=E7=B1=BB=E7=9A=84get?= =?UTF-8?q?RuleMsg=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Validate.php b/library/think/Validate.php index 675af8f5..84546464 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -1198,7 +1198,7 @@ class Validate $msg = $title . '规则错误'; } - if (is_string($msg) && strpos($msg, '{%')) { + if (is_string($msg) && 0 === strpos($msg, '{%')) { $msg = Lang::get(substr($msg, 2, -1)); }