Skip to content
Browse files

MDL-28352: Fixed bug in html_writer::select_time causing not autosele…

…cting month
  • Loading branch information...
1 parent 269c884 commit e58dbe0fe87f6ea939d62da8d53909279021353a @marinaglancy marinaglancy committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/outputcomponents.php
View
2 lib/outputcomponents.php
@@ -1199,7 +1199,7 @@ public static function select_time($type, $name, $currenttime=0, $step=5, array
$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++) {

0 comments on commit e58dbe0

Please sign in to comment.
Something went wrong with that request. Please try again.