Browse Source

fixed a few bugs.

Taylor Otwell 13 years ago
parent
commit
270e0d4994
2 changed files with 7 additions and 4 deletions
  1. 4 3
      laravel/ioc.php
  2. 3 1
      laravel/session/payload.php

+ 4 - 3
laravel/ioc.php

@@ -24,9 +24,10 @@ class IoC {
 	 */
 	public static function bootstrap($registry = array())
 	{
-		Config::load('container');
-
-		static::$registry = Config::$items['container'];
+		if (Config::load('container'))
+		{
+			static::$registry = Config::$items['container'];
+		}
 	}
 
 	/**

+ 3 - 1
laravel/session/payload.php

@@ -171,7 +171,9 @@ class Payload {
 	 */
 	public function reflash()
 	{
-		$this->session['data'][':new:'] += $this->session['data'][':old:'];
+		$old = $this->session['data'][':old:'];
+
+		$this->session['data'][':new:'] = array_merge($this->session['data'][':new:'], $old);
 	}
 
 	/**