Debug v21 - Fix import
This commit is contained in:
parent
c8575f0440
commit
c850581ad8
2 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue