mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
74cd3db5e1
commit
849ad9a4f5
1 changed files with 1 additions and 11 deletions
|
@ -2866,17 +2866,7 @@ class FormHelper extends AppHelper {
|
||||||
$data = array('am' => 'am', 'pm' => 'pm');
|
$data = array('am' => 'am', 'pm' => 'pm');
|
||||||
break;
|
break;
|
||||||
case 'day':
|
case 'day':
|
||||||
$min = 1;
|
for ($i = 1; $i <= 31; $i++) {
|
||||||
$max = 31;
|
|
||||||
|
|
||||||
if (isset($options['min'])) {
|
|
||||||
$min = $options['min'];
|
|
||||||
}
|
|
||||||
if (isset($options['max'])) {
|
|
||||||
$max = $options['max'];
|
|
||||||
}
|
|
||||||
|
|
||||||
for ($i = $min; $i <= $max; $i++) {
|
|
||||||
$data[sprintf('%02d', $i)] = $i;
|
$data[sprintf('%02d', $i)] = $i;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue