Skip to content

Commit

Permalink
Check arrays on Input::had. Closes #1988.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 14, 2013
1 parent 6891fb7 commit 727b694
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions laravel/input.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ public static function except($keys)
*/
public static function had($key)
{
if (is_array(static::old($key))) return true;

return trim((string) static::old($key)) !== '';
}

Expand Down

0 comments on commit 727b694

Please sign in to comment.