From 0387e003ad7b1d9c4ed16c67b98100b72747a83b Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Fri, 20 Jan 2012 16:04:59 +0800 Subject: [PATCH] MDL-28352: Fixed bug in html_writer::select_time causing not autoselecting month --- lib/outputcomponents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 96996477cdd..f87c4ac26ca 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -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++) {