From 25f49b6a24c756157e3d382277d60412b24fef43 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 1 Dec 2013 15:29:07 +0100 Subject: [PATCH] Fix: bad test --- htdocs/societe/soc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 7987c464a14..4dabc045353 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -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);