FIX : no fetch required
This commit is contained in:
parent
1afddabed4
commit
b82f14859c
@ -604,11 +604,9 @@ if ($id) {
|
|||||||
$morehtmlref .= '</form>';
|
$morehtmlref .= '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sal = new Salary($db);
|
|
||||||
$sal->fetch($object->id);
|
|
||||||
//Employee
|
//Employee
|
||||||
if ($action != 'editfk_user') {
|
if ($action != 'editfk_user') {
|
||||||
if ($sal->getSommePaiement() > 0 && !empty($object->fk_user)) {
|
if ($object->getSommePaiement() > 0 && !empty($object->fk_user)) {
|
||||||
$userstatic = new User($db);
|
$userstatic = new User($db);
|
||||||
$result = $userstatic->fetch($object->fk_user);
|
$result = $userstatic->fetch($object->fk_user);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user