[Qual] Replaced deprecated dol_clone calls
With proper clone calls.
This commit is contained in:
parent
5fb8068374
commit
5bb153877a
@ -12,6 +12,7 @@
|
||||
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
||||
* Copyright (C) 2015 Ari Elbaz (elarifr) <github@accedinfo.com>
|
||||
* Copyright (C) 2015 Charlie Benke <charlie@patas-monkey.com>
|
||||
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -324,7 +325,7 @@ if (empty($reshook)) {
|
||||
if (!$error) {
|
||||
$db->begin();
|
||||
|
||||
$object->oldcopy = dol_clone($object);
|
||||
$object->oldcopy = clone $object;
|
||||
|
||||
$object->lastname = GETPOST("lastname", 'alpha');
|
||||
$object->firstname = GETPOST("firstname", 'alpha');
|
||||
@ -506,7 +507,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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user