From 87c74b3944392de59c2351124c4c241b0834ad10 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 23 Feb 2017 16:39:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/Loader.php b/library/think/Loader.php index b6d95d72..a0727fef 100644 --- a/library/think/Loader.php +++ b/library/think/Loader.php @@ -369,7 +369,7 @@ class Loader if (isset(self::$instance[$guid])) { return self::$instance[$guid]; } - if (strpos($name, '\\')) { + if (false !== strpos($name, '\\')) { $class = $name; $module = Request::instance()->module(); } else { @@ -405,7 +405,7 @@ class Loader */ public static function controller($name, $layer = 'controller', $appendSuffix = false, $empty = '') { - if (strpos($name, '\\')) { + if (false !== strpos($name, '\\')) { $class = $name; $module = Request::instance()->module(); } else { @@ -442,7 +442,7 @@ class Loader if (isset(self::$instance[$guid])) { return self::$instance[$guid]; } - if (strpos($name, '\\')) { + if (false !== strpos($name, '\\')) { $class = $name; $module = Request::instance()->module(); } else {