Fixing style errors.

This commit is contained in:
stickler-ci
2021-01-28 16:27:55 +00:00
parent 5adcc3361b
commit b4d0668cea
2 changed files with 5 additions and 5 deletions

View File

@@ -99,7 +99,7 @@ if ($action == 'classin' && $user->rights->tax->charges->creer)
$object->setProject(GETPOST('projectid'));
}
if($action == 'setfk_user' && $user->rights->tax->charges->creer) {
if ($action == 'setfk_user' && $user->rights->tax->charges->creer) {
$object->fetch($id);
$object->fk_user = $fk_user;
$object->update($user);
@@ -463,10 +463,10 @@ if ($id > 0)
$morehtmlref .= $form->editfieldval("Label", 'lib', $object->label, $object, $user->rights->tax->charges->creer, 'string', '', null, null, '', 1);
// Employee
if($action != 'editfk_user') {
if ($action != 'editfk_user') {
$morehtmlref .= '<br />' . $form->editfieldkey("Employee", 'fk_user', $object->label, $object, $user->rights->tax->charges->creer, 'string', '', 0, 1);
if(!empty($object->fk_user)) {
if (!empty($object->fk_user)) {
$userstatic = new User($db);
$userstatic->fetch($object->fk_user);
$morehtmlref .= $userstatic->getNomUrl(1);

View File

@@ -418,8 +418,8 @@ while ($i < min($num, $limit))
if (!empty($arrayfields['cs.fk_user']['checked'])) {
// Employee
print "<td>";
if(!empty($obj->fk_user)) {
if(!empty($TLoadedUsers[$obj->fk_user])) $ustatic = $TLoadedUsers[$obj->fk_user];
if (!empty($obj->fk_user)) {
if (!empty($TLoadedUsers[$obj->fk_user])) $ustatic = $TLoadedUsers[$obj->fk_user];
else {
$ustatic = new User($db);
$ustatic->fetch($obj->fk_user);