From a3372a9a0a831b883aec46ab0011d352e96e7b25 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Dec 2013 22:14:47 +0100 Subject: [PATCH] Fix: Regression --- 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 66b9c203376..b9fd30a57e4 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);