#418: Menu directement choisi s'il n'y en a qu'un

This commit is contained in:
Dany De Bontridder 2011-10-29 01:10:52 +00:00
parent 148f634aeb
commit 80d8c73a1d
3 changed files with 21 additions and 4 deletions

View file

@ -32,6 +32,14 @@ require_once 'function_javascript.php';
html_page_start();
global $g_user, $cn;
// if gDossier is not set redirect to form to choose a folder
if ( ! isset($_REQUEST['gDossier']))
{
redirect('user_login.php');
exit();
}
$cn = new Database(Dossier::id());
$g_user = new User($cn);