Browse Source

Fix bug in IoC singleton checking.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
Taylor Otwell 12 years ago
parent
commit
638032f4c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/ioc.php

+ 1 - 1
laravel/ioc.php

@@ -130,7 +130,7 @@ class IoC {
 		// If the resolver is registering as a singleton resolver, we will cache
 		// the instance of the object in the container so we can resolve it next
 		// time without having to instantiate a brand new instance.
-		if (isset(static::$registry[$name]['singleton']))
+		if (static::$registry[$name]['singleton'])
 		{
 			return static::$singletons[$name] = $object;
 		}