Update paiement.class.php

This commit is contained in:
Laurent Destailleur 2020-06-20 12:15:48 +02:00 committed by GitHub
parent 2f7bb18e2b
commit da9c25348e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -532,9 +532,8 @@ class Paiement extends CommonObject
$accline = new AccountLine($this->db);
$result=$accline->fetch($bank_line_id);
if ($result == 0)
{
$accline->id=$accline->rowid=$bank_line_id; // If not found, we set artificially rowid to allow delete of llx_bank_url
if ($result == 0) {
$accline->id = $accline->rowid = $bank_line_id; // If not found, we set artificially rowid to allow delete of llx_bank_url
}
// Delete bank account url lines linked to payment