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
|
|
@ -50,9 +50,10 @@ $d=$_REQUEST['e'];
|
|||
$filter_card='';
|
||||
|
||||
require_once('class_user.php');
|
||||
$user=new User($cn);
|
||||
$user->check();
|
||||
$user->check_dossier(dossier::id());
|
||||
global $g_user;
|
||||
$g_user=new User($cn);
|
||||
$g_user->check();
|
||||
$g_user->check_dossier(dossier::id());
|
||||
|
||||
switch ($d)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue