diff --git a/htdocs/public/demo/index.php b/htdocs/public/demo/index.php
index abf5134577b..c253cc9b016 100644
--- a/htdocs/public/demo/index.php
+++ b/htdocs/public/demo/index.php
@@ -68,7 +68,7 @@ function llxHeaderVierge($title, $head = "")
print "\n";
print "
\n";
print ''."\n";
- print ''."\n";
+ print ''."\n";
print ''."\n";
print "".$title."\n";
print ''."\n";
@@ -109,7 +109,6 @@ if ($_REQUEST["action"] == 'gotodemo')
{
$url=DOL_URL_ROOT.'/index.php?disablemodules='.$disablestring;
if (! empty($_REQUEST["urlfrom"])) $url.='&urlfrom='.$_REQUEST["urlfrom"];
- if (! empty($conf->global->MAIN_DEMO)) $url.='&username='.urlencode($conf->global->MAIN_DEMO);
header("Location: ".$url);
exit;
}