Code quality : use as often as possible global $g_user instead of recreating a new User object

This commit is contained in:
Dany De Bontridder 2012-06-13 12:52:31 +00:00
parent d86a5d4a44
commit 652cf8d4c7
50 changed files with 221 additions and 255 deletions

View file

@ -38,9 +38,10 @@ require_once('class_database.php');
$cn=new Database($gDossier);
include_once ('class_user.php');
$User=new User($cn);
$User->Check();
$act=$User->check_dossier($gDossier);
global $g_user;
$g_user=new User($cn);
$g_user->Check();
$act=$g_user->check_dossier($gDossier);
// AC CODE = SEARCH
if ($act =='P')
{