mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Also fix hour()
This commit is contained in:
parent
3ba4308356
commit
8cdf222cc0
1 changed files with 5 additions and 0 deletions
|
@ -2315,6 +2315,11 @@ class FormHelper extends AppHelper {
|
|||
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::hour
|
||||
*/
|
||||
public function hour($fieldName, $format24Hours = false, $attributes = array()) {
|
||||
if (is_array($format24Hours)) {
|
||||
$attributes = $format24Hours;
|
||||
$format24Hours = null;
|
||||
}
|
||||
|
||||
$attributes += array('empty' => true, 'value' => null);
|
||||
$attributes = $this->_dateTimeSelected('hour', $fieldName, $attributes);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue