From d61906714c3f937aba1be4479d6e32d26480b4fe Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 26 Sep 2013 20:19:48 +0200 Subject: [PATCH] Removed unnecessary array_key_exists() call --- wcfsetup/install/files/lib/system/SingletonFactory.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/SingletonFactory.class.php b/wcfsetup/install/files/lib/system/SingletonFactory.class.php index dea129cff3..0dfbf83241 100644 --- a/wcfsetup/install/files/lib/system/SingletonFactory.class.php +++ b/wcfsetup/install/files/lib/system/SingletonFactory.class.php @@ -55,7 +55,7 @@ abstract class SingletonFactory { self::$__singletonObjects[$className] = null; self::$__singletonObjects[$className] = new $className(); } - else if (array_key_exists($className, self::$__singletonObjects) && self::$__singletonObjects[$className] === null) { + else if (self::$__singletonObjects[$className] === null) { throw new SystemException("Infinite loop detected while trying to retrieve object for '".$className."'"); } -- 2.20.1