diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php
index c799ab2c665..b9efc4eb8a4 100644
--- a/htdocs/install/inc.php
+++ b/htdocs/install/inc.php
@@ -453,11 +453,6 @@ function pFooter($nonext=0,$setuplang='',$jscheckfunction='', $withpleasewait=0)
print '
';
if ($nonext == '2')
{
- if (!isset($_SERVER['REQUEST_URI']))
- {
- $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1 );
- if (isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING']; }
- }
print $langs->trans("ErrorFoundDuringMigration", isset($_SERVER["REQUEST_URI"])?$_SERVER["REQUEST_URI"].'&ignoreerrors=1':'').'
';
}