FIX Removed warnings

This commit is contained in:
Laurent Destailleur 2015-09-17 00:47:56 +02:00
parent 313d9ddacd
commit 099e3f0376

View File

@ -278,7 +278,7 @@ if (($action == 'addgroup' || $action == 'removegroup') && $caneditfield)
{ {
$editgroup = new UserGroup($db); $editgroup = new UserGroup($db);
$editgroup->fetch($group); $editgroup->fetch($group);
$editgroup->oldcopy=dol_clone($editgroup); $editgroup->oldcopy=clone($editgroup);
$object->fetch($id); $object->fetch($id);
if ($action == 'addgroup') $object->SetInGroup($group,($conf->multicompany->transverse_mode?GETPOST("entity"):$editgroup->entity)); if ($action == 'addgroup') $object->SetInGroup($group,($conf->multicompany->transverse_mode?GETPOST("entity"):$editgroup->entity));
@ -340,7 +340,7 @@ if ($action == 'update' && ! $_POST["cancel"])
{ {
$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');
@ -508,7 +508,7 @@ if ($action == 'update' && ! $_POST["cancel"])
{ {
$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)
@ -1046,7 +1046,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
{ {
print '<tr><td>'.$langs->trans("ColorUser").'</td>'; print '<tr><td>'.$langs->trans("ColorUser").'</td>';
print '<td>'; print '<td>';
print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', 'usercolorconfig', 1, '', 'hideifnotset'); print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', null, 1, '', 'hideifnotset');
print '</td></tr>'; print '</td></tr>';
} }
@ -2151,7 +2151,7 @@ else
{ {
print '<tr><td>'.$langs->trans("ColorUser").'</td>'; print '<tr><td>'.$langs->trans("ColorUser").'</td>';
print '<td>'; print '<td>';
print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', 'usercolorconfig', 1, '', 'hideifnotset'); print $formother->selectColor(GETPOST('color')?GETPOST('color'):$object->color, 'color', null, 1, '', 'hideifnotset');
print '</td></tr>'; print '</td></tr>';
} }