MDL-28352: Fixed bug in html_writer::select_time causing not autoselecting month

This commit is contained in:
Marina Glancy 2012-01-20 16:04:59 +08:00
parent 269c884874
commit e58dbe0fe8

View file

@ -1199,7 +1199,7 @@ class html_writer {
$timeunits[$i] = userdate(gmmktime(12,0,0,$i,15,2000), "%B");
}
$userdatetype = 'month';
$currentdate['month'] = $currentdate['mon'];
$currentdate['month'] = (int)$currentdate['mon'];
break;
case 'days':
for ($i=1; $i<=31; $i++) {