We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b47b5 commit 1591766Copy full SHA for 1591766
1 file changed
plugins/exportFE/src/FatturaElettronica.php
@@ -1725,7 +1725,7 @@ protected static function getAllegati($fattura)
1725
// Inclusione
1726
foreach ($allegati as $allegato) {
1727
$categoria = database()->fetchOne('SELECT `name` FROM `zz_files_categories` WHERE `id` = '.prepare($allegato['id_category']))['name'];
1728
- if ($categoria == 'Allegati Fattura Elettronica') {
+ if (strcasecmp($categoria, 'Allegati Fattura Elettronica') === 0) {
1729
$file = base_dir().'/'.$directory.'/'.$allegato['filename'];
1730
1731
$attachments[] = [
0 commit comments