Browse Source

fix bug in input::except method when passing a string.

Taylor Otwell 12 years ago
parent
commit
c6125edc66
2 changed files with 2 additions and 1 deletions
  1. 1 0
      changes.md
  2. 1 1
      laravel/input.php

+ 1 - 0
changes.md

@@ -12,6 +12,7 @@
 <a name="3.2"></a>
 ## Laravel 3.2
 
+- Fixed the passing of strings into the Input::except method.
 - Fixed replacement of optional parameters in URL::transpose method.
 - Added "to_array" method to the base Eloquent model.
 - Added "$hidden" static variable to the base Eloquent model.

+ 1 - 1
laravel/input.php

@@ -96,7 +96,7 @@ class Input {
 	 */
 	public static function except($keys)
 	{
-		return array_diff_key(static::get(), array_flip($keys));
+		return array_diff_key(static::get(), array_flip((array) $keys));
 	}
 
 	/**