diff --git a/htdocs/index.php b/htdocs/index.php
index de68530dd26..0f019ac3ad7 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -47,7 +47,7 @@ print_fiche_titre($langs->trans("HomeArea"));
if (! empty($conf->global->MAIN_MOTD))
{
- $conf->global->MAIN_MOTD=eregi_replace('
','',$conf->global->MAIN_MOTD);
+ $conf->global->MAIN_MOTD=eregi_replace('
$','',$conf->global->MAIN_MOTD);
if (! empty($conf->global->MAIN_MOTD))
{
print "\n\n";