diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php
index caa37119c57..1082c6dbd80 100755
--- a/htdocs/salaries/card.php
+++ b/htdocs/salaries/card.php
@@ -611,20 +611,20 @@ if ($id) {
$resql = $db->query($sql);
$obj = $db->fetch_object($resql);
//Employee
- if($action != 'editfk_user') {
- if (!empty($obj) && !empty($object->fk_user)){
+ if ($action != 'editfk_user') {
+ if (!empty($obj) && !empty($object->fk_user)) {
$userstatic = new User($db);
$result = $userstatic->fetch($object->fk_user);
- if ($result > 0){
+ if ($result > 0) {
$morehtmlref .= '
' .$langs->trans('Employee').' : '.$userstatic->getNomUrl(1);
}
} else {
$morehtmlref .= '
' . $form->editfieldkey("Employee", 'fk_user', $object->label, $object, $user->rights->salaries->write, 'string', '', 0, 1);
- if(!empty($object->fk_user)) {
+ if (!empty($object->fk_user)) {
$userstatic = new User($db);
$result = $userstatic->fetch($object->fk_user);
- if ($result > 0){
+ if ($result > 0) {
$morehtmlref .= $userstatic->getNomUrl(1);
} else {
dol_print_error($db);