Removed unnecessary array_key_exists() call
authorAlexander Ebert <ebert@woltlab.com>
Thu, 26 Sep 2013 18:19:48 +0000 (20:19 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 26 Sep 2013 18:19:48 +0000 (20:19 +0200)
wcfsetup/install/files/lib/system/SingletonFactory.class.php

index dea129cff3955f78ac3fc44efd04fd8856cd9751..0dfbf83241cbfb63a399344a757008ddb91639dd 100644 (file)
@@ -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."'");
                }