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); dol_syslog("interface_modAgenda_ActionsAuto.class.php: ".$this->error, LOG_ERR);
return -1; return -1;
} }
return 0;
} }
} }

View File

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