Fix error management

This commit is contained in:
Laurent Destailleur 2017-09-30 19:12:12 +02:00
parent a43dcbd0c5
commit 47c0231fb8

View File

@ -323,9 +323,9 @@ if (empty($reshook))
} }
if ($error) if (! $error)
{ {
if ($action == 'update') if ($action == 'update')
{ {
$ret=$object->fetch($socid); $ret=$object->fetch($socid);
$object->oldcopy = clone $object; $object->oldcopy = clone $object;