2
0
forked from Wavyzz/dolibarr

Debug v21 - Fix import

This commit is contained in:
Laurent Destailleur
2025-01-06 02:47:32 +01:00
parent c8575f0440
commit c850581ad8
2 changed files with 1 additions and 2 deletions

View File

@@ -210,7 +210,7 @@ class ImportCsv extends ModeleImports
ini_set('auto_detect_line_endings', 1); // For MAC compatibility
$handle = fopen(dol_osencode($file), "r");
if (!$this->handle) {
if (!$handle) {
$langs->load("errors");
$this->error = $langs->trans("ErrorFailToOpenFile", $file);
$ret = -1;

View File

@@ -268,7 +268,6 @@ class ImportXlsx extends ModeleImports
public function import_open_file($file)
{
// phpcs:enable
global $langs;
$ret = 1;
dol_syslog(get_class($this) . "::open_file file=" . $file);