Fix: use clone instead dol_clone

This commit is contained in:
Regis Houssin
2016-03-17 15:22:05 +01:00
parent ae16d6c45c
commit a2bb57e33b

View File

@@ -481,7 +481,7 @@ if (empty($reshook)) {
{
$object->fetch($id);
$object->oldcopy = dol_clone($object);
$object->oldcopy = clone $object;
$ret = $object->setPassword($user, $_POST["password"]);
if ($ret < 0)