Commit 017c65c0 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1056 from Jakobud/bug/form/buttons/defaultValues

Fixed Exception thrown when passing null $value to Form::submit(), Form::reset(), Form::button()
parents 22962fce 31c730c9
......@@ -526,7 +526,7 @@ class Form {
* @param array $attributes
* @return string
*/
public static function submit($value, $attributes = array())
public static function submit($value = null, $attributes = array())
{
return static::input('submit', null, $value, $attributes);
}
......@@ -538,7 +538,7 @@ class Form {
* @param array $attributes
* @return string
*/
public static function reset($value, $attributes = array())
public static function reset($value = null, $attributes = array())
{
return static::input('reset', null, $value, $attributes);
}
......@@ -570,7 +570,7 @@ class Form {
* @param array $attributes
* @return string
*/
public static function button($value, $attributes = array())
public static function button($value = null, $attributes = array())
{
return '<button'.HTML::attributes($attributes).'>'.HTML::entities($value).'</button>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment