Code quality : use as often as possible global $g_user instead of recreating a new User object
This commit is contained in:
parent
d86a5d4a44
commit
652cf8d4c7
50 changed files with 221 additions and 255 deletions
|
|
@ -36,10 +36,9 @@ $str_dossier=dossier::get();
|
|||
|
||||
/* Admin. Dossier */
|
||||
$cn=new Database($gDossier);
|
||||
$User=new User($cn);
|
||||
|
||||
$User->Check();
|
||||
$User->check_dossier($gDossier);
|
||||
global $g_user;
|
||||
$g_user->Check();
|
||||
$g_user->check_dossier($gDossier);
|
||||
|
||||
include_once ("user_menu.php");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue