From 47c0231fb8520b8e5a78307b016052b66febe275 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 30 Sep 2017 19:12:12 +0200 Subject: [PATCH] Fix error management --- htdocs/societe/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 866fbf64942..f5157f3b6ad 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -323,9 +323,9 @@ if (empty($reshook)) } - if ($error) + if (! $error) { - if ($action == 'update') + if ($action == 'update') { $ret=$object->fetch($socid); $object->oldcopy = clone $object;