From 8aeb20dcd44c14bbcf4a8dbfd3b5309c1bfb1e8e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 19 Sep 2017 11:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bexception=5Fhandle=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8F=82=E6=95=B0=E5=AF=B9=E9=97=AD=E5=8C=85=E7=9A=84?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Error.php b/library/think/Error.php index 42827424..9eda5442 100644 --- a/library/think/Error.php +++ b/library/think/Error.php @@ -106,7 +106,7 @@ class Error if (!$handle) { // 异常处理handle $class = Config::get('exception_handle'); - if ($class && class_exists($class) && is_subclass_of($class, "\\think\\exception\\Handle")) { + if ($class && is_string($class) && class_exists($class) && is_subclass_of($class, "\\think\\exception\\Handle")) { $handle = new $class; } else { $handle = new Handle;