Check arrays on Input::had. Closes #1988.

This commit is contained in:
Taylor Otwell 2013-05-14 00:41:39 -05:00
parent 6891fb7b21
commit 727b69494b
1 changed files with 2 additions and 0 deletions

View File

@ -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)) !== '';
}