Skip to content
Snippets Groups Projects
Commit a118d58e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #4638 from GPCsolutions/dolibarr-clone

[Qual] Replaced deprecated dol_clone calls
parents 0dc76fa1 5bb15387
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr> * Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2015 Ari Elbaz (elarifr) <github@accedinfo.com> * Copyright (C) 2015 Ari Elbaz (elarifr) <github@accedinfo.com>
* Copyright (C) 2015 Charlie Benke <charlie@patas-monkey.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 * 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 * it under the terms of the GNU General Public License as published by
...@@ -324,7 +325,7 @@ if (empty($reshook)) { ...@@ -324,7 +325,7 @@ if (empty($reshook)) {
if (!$error) { if (!$error) {
$db->begin(); $db->begin();
$object->oldcopy = dol_clone($object); $object->oldcopy = clone $object;
$object->lastname = GETPOST("lastname", 'alpha'); $object->lastname = GETPOST("lastname", 'alpha');
$object->firstname = GETPOST("firstname", 'alpha'); $object->firstname = GETPOST("firstname", 'alpha');
...@@ -506,7 +507,7 @@ if (empty($reshook)) { ...@@ -506,7 +507,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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment