Skip to content

Commit 5252820

Browse files
committed
fix: gestione permessi cartella
1 parent b4ca968 commit 5252820

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

update/2_7_2.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
$new_folder = 'files/'.$module->attachments_directory.'/';
1010

11+
if (!file_exists($new_folder)) {
12+
mkdir($new_folder, 0755, true);
13+
}
14+
1115
$attachments = database()->fetchArray('SELECT `filename` FROM `zz_files` WHERE `name` = "Fattura Elettronica" AND `id_module` = '.$module->id);
1216

1317
$attachments_filenames = array_column($attachments, 'filename');

0 commit comments

Comments
 (0)