Update paiement.class.php

in case of sql query add error message in log instead of the screen
This commit is contained in:
BENKE Charles 2015-02-04 02:17:37 +01:00
parent 6d751ad63b
commit 50ff9d2d0c

View File

@ -488,7 +488,7 @@ class Paiement extends CommonObject
$fac->thirdparty->name, $fac->thirdparty->name,
'company' '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 $linkaddedforthirdparty[$fac->thirdparty->id]=$fac->thirdparty->id; // Mark as done for this thirdparty
} }
} }
@ -506,7 +506,7 @@ class Paiement extends CommonObject
$fac->thirdparty->name, $fac->thirdparty->name,
'company' '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 $linkaddedforthirdparty[$fac->thirdparty->id]=$fac->thirdparty->id; // Mark as done for this thirdparty
} }
} }