Fix: use clone instead dol_clone
This commit is contained in:
parent
ae16d6c45c
commit
a2bb57e33b
@ -481,7 +481,7 @@ if (empty($reshook)) {
|
|||||||
{
|
{
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
|
|
||||||
$object->oldcopy = dol_clone($object);
|
$object->oldcopy = clone $object;
|
||||||
|
|
||||||
$ret = $object->setPassword($user, $_POST["password"]);
|
$ret = $object->setPassword($user, $_POST["password"]);
|
||||||
if ($ret < 0)
|
if ($ret < 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user