From c7ac19f144c9e0670687d58c8bb174fb43f98b1f Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 31 Jul 2009 05:40:55 +0000 Subject: [PATCH] ENHANCEMENT: Improved performance of ClassInfo::classImplements git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@83440 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/ClassInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ClassInfo.php b/core/ClassInfo.php index 784f9fe12..3c0fe0a85 100755 --- a/core/ClassInfo.php +++ b/core/ClassInfo.php @@ -168,7 +168,7 @@ class ClassInfo { */ static function classImplements($className, $interfaceName) { global $_ALL_CLASSES; - return isset($_ALL_CLASSES['implementors'][$interfaceName]) ? in_array($className, $_ALL_CLASSES['implementors'][$interfaceName]) : false; + return isset($_ALL_CLASSES['implementors'][$interfaceName][$className]); } /**