Update paiement.class.php
in case of sql query add error message in log instead of the screen
This commit is contained in:
parent
6d751ad63b
commit
50ff9d2d0c
1 changed files with 2 additions and 2 deletions
|
|
@ -488,7 +488,7 @@ class Paiement extends CommonObject
|
|||
$fac->thirdparty->name,
|
||||
'company'
|
||||
);
|
||||
if ($result <= 0) dol_print_error($this->db);
|
||||
if ($result <= 0) dol_syslog(get_class($this).'::addPaymentToBank '.$this->db->lasterror());
|
||||
$linkaddedforthirdparty[$fac->thirdparty->id]=$fac->thirdparty->id; // Mark as done for this thirdparty
|
||||
}
|
||||
}
|
||||
|
|
@ -506,7 +506,7 @@ class Paiement extends CommonObject
|
|||
$fac->thirdparty->name,
|
||||
'company'
|
||||
);
|
||||
if ($result <= 0) dol_print_error($this->db);
|
||||
if ($result <= 0) dol_syslog(get_class($this).'::addPaymentToBank '.$this->db->lasterror());
|
||||
$linkaddedforthirdparty[$fac->thirdparty->id]=$fac->thirdparty->id; // Mark as done for this thirdparty
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue