From 84e6224b1bd56d92b90e12210bf6845df0d1ace0 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 30 Nov 2011 09:05:10 -0600 Subject: [PATCH] Fix bug in Autoloader's library detection. --- laravel/autoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/autoloader.php b/laravel/autoloader.php index 50f9c664..89603b72 100644 --- a/laravel/autoloader.php +++ b/laravel/autoloader.php @@ -63,7 +63,7 @@ protected static function find($class) // If the library has been registered as a PSR-0 compliant library, we will // load the library according to the PSR-0 naming standards, which state that // namespaces and underscores indicate the directory hierarchy of the class. - if (isset(static::$libraries[static::library($class)])) + if (in_array(static::library($class), static::$libraries)) { return LIBRARY_PATH.str_replace(array('\\', '_'), '/', $class).EXT; }