Fix dead code

This commit is contained in:
Laurent Destailleur 2016-10-25 21:04:04 +02:00
parent 4a3251407f
commit b999b0bb82
2 changed files with 6 additions and 7 deletions

View File

@ -872,8 +872,6 @@ class InterfaceActionsAuto extends DolibarrTriggers
dol_syslog("interface_modAgenda_ActionsAuto.class.php: ".$this->error, LOG_ERR);
return -1;
}
return 0;
}
}

View File

@ -99,15 +99,15 @@ class Loan extends CommonObject
$this->account_capital = $obj->accountancy_account_capital;
$this->account_insurance = $obj->accountancy_account_insurance;
$this->account_interest = $obj->accountancy_account_interest;
return 1;
$this->db->free($resql);
return 1;
}
else
{
$this->db->free($resql);
return 0;
}
$this->db->free($resql);
}
else
{
@ -482,13 +482,14 @@ class Loan extends CommonObject
if (empty($obj->fk_user_modif)) $obj->tms = "";
$this->date_modification = $this->db->jdate($obj->tms);
$this->db->free($result);
return 1;
}
else
{
return 0;
$this->db->free($result);
return 0;
}
$this->db->free($result);
}
else
{