mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Correct default value to false.
This commit is contained in:
parent
c9e0f60423
commit
c31fcd6f39
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue