Correct default value to false.

This commit is contained in:
Mark Scherer 2015-04-21 14:32:34 +02:00
parent c9e0f60423
commit c31fcd6f39

View file

@ -2317,7 +2317,7 @@ class FormHelper extends AppHelper {
public function hour($fieldName, $format24Hours = false, $attributes = array()) { public function hour($fieldName, $format24Hours = false, $attributes = array()) {
if (is_array($format24Hours)) { if (is_array($format24Hours)) {
$attributes = $format24Hours; $attributes = $format24Hours;
$format24Hours = null; $format24Hours = false;
} }
$attributes += array('empty' => true, 'value' => null); $attributes += array('empty' => true, 'value' => null);