Skip to content

Commit da6fd45

Browse files
committed
fix: esportazione sepa
1 parent 4b86cd6 commit da6fd45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/presentazioni_bancarie/generate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
if ($database->tableExists('co_mandati_sepa')) {
122122
$rs_mandato = $dbo->fetchArray('SELECT * FROM co_mandati_sepa WHERE id_banca = '.prepare($banca_controparte->id));
123123
} else {
124-
$rs_mandato = false;
124+
$rs_mandato = 0;
125125
}
126126

127127
$is_rid = in_array($scadenza->documento->pagamento['codice_modalita_pagamento_fe'], ['MP09', 'MP10', 'MP11']);
@@ -162,7 +162,7 @@
162162
$check_prima = 'selected';
163163
}
164164

165-
if (sizeof($rs_mandato) > 0) {
165+
if ($rs_mandato) {
166166
if ($rs_mandato[0]['singola_disposizione'] == '1') {
167167
$check_singola = 'selected';
168168

0 commit comments

Comments
 (0)