Merge branch '1694-Carrefour-Cuando-asignas-una-pantalla-de-inicio-a-un-usuario-la-URL-que-muestra-el-navegador-no-es-la-correcta-2' into 'develop'

Fix setting visual console as home screen - #1694

See merge request artica/pandorafms!1249
This commit is contained in:
vgilc 2018-01-12 12:49:19 +01:00
commit 772a2c4f2c
1 changed files with 5 additions and 0 deletions

View File

@ -544,7 +544,12 @@ if (! isset ($config['id_user'])) {
exit ("</html>");
}
}
if($home_page != 'Visual console'){
header("Location: ".$config['homeurl']."index.php?sec=".$_GET["sec"]."&sec2=".$_GET["sec2"]);
}
else{
header("Location: ".$config['homeurl']."index.php?sec=".$_GET["sec"]);
}
}
// Hash login process
elseif (isset ($_GET["loginhash"])) {