diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 288b751c708..4f202376d61 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -989,12 +989,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$langs->trans("December")
);
print ''."\n";
// Define tradMonthsMin javascript array (we define this in datapicker AND in parent page to avoid errors with IE8)
@@ -1012,12 +1007,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$langs->trans("DecemberMin")
);
print ''."\n";
// Define tradDays javascript array (we define this in datapicker AND in parent page to avoid errors with IE8)
@@ -1030,12 +1020,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$langs->trans("Sunday")
);
print ''."\n";
// Define tradDaysMin javascript array (we define this in datapicker AND in parent page to avoid errors with IE8)
@@ -1048,12 +1033,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$langs->trans("SundayMin")
);
print ''."\n";
if (! empty($head)) print $head."\n";