From 69c9195ab7bcd1d6ced1bd0305ca0f07d1c777d9 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 754c2256b58..d71bdfc0afd 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -1182,7 +1182,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++) {