mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX : no fetch required
This commit is contained in:
parent
1afddabed4
commit
b82f14859c
|
|
@ -603,12 +603,10 @@ if ($id) {
|
|||
$morehtmlref .= '<input type="submit" class="button valignmiddle" value="'.$langs->trans("Modify").'">';
|
||||
$morehtmlref .= '</form>';
|
||||
}
|
||||
|
||||
$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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user