Fix: bad test

This commit is contained in:
Laurent Destailleur 2013-12-01 15:29:07 +01:00
parent 8e51a4683f
commit 25f49b6a24

View File

@ -52,7 +52,7 @@ $action = (GETPOST('action') ? GETPOST('action') : 'view');
$confirm = GETPOST('confirm');
$socid = GETPOST('socid','int');
if ($user->societe_id) $socid=$user->societe_id;
if (empty($socid) && $action = 'view') $action='create';
if (empty($socid) && $action == 'view') $action='create';
$object = new Societe($db);
$extrafields = new ExtraFields($db);