From 98c74d799bab5c4a41eba277f6d4bfe80f2db984 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Sat, 9 Feb 2013 03:50:51 +0100 Subject: [PATCH] wrapped in curly braces --- wcfsetup/install/files/lib/system/WCF.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index eba5af5ef1..0d82380691 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -534,8 +534,9 @@ class WCF { $namespaces = explode('\\', $className); if (count($namespaces) > 1) { $applicationPrefix = array_shift($namespaces); - if($applicationPrefix === '') + if($applicationPrefix === '') { $applicationPrefix = array_shift($namespaces); + } if (isset(self::$autoloadDirectories[$applicationPrefix])) { $classPath = self::$autoloadDirectories[$applicationPrefix] . implode('/', $namespaces) . '.class.php'; if (file_exists($classPath)) { -- 2.20.1