diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php index 98f2cec2523..8fbcc53539b 100755 --- a/htdocs/salaries/card.php +++ b/htdocs/salaries/card.php @@ -603,12 +603,10 @@ if ($id) { $morehtmlref .= ''; $morehtmlref .= ''; } - - $sal = new Salary($db); - $sal->fetch($object->id); + //Employee if ($action != 'editfk_user') { - if ($sal->getSommePaiement() > 0 && !empty($object->fk_user)) { + if ($object->getSommePaiement() > 0 && !empty($object->fk_user)) { $userstatic = new User($db); $result = $userstatic->fetch($object->fk_user); if ($result > 0) {