diff --git a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php index 3a3eb8cbbca55..05dfc085a1aff 100644 --- a/htdocs/core/modules/barcode/doc/phpbarcode.modules.php +++ b/htdocs/core/modules/barcode/doc/phpbarcode.modules.php @@ -193,7 +193,6 @@ public function writeBarCode($code, $encoding, $readable = 'Y', $scale = 1, $noo } else { $this->error = "ErrorFailedToWriteInTempDirectory ".$conf->barcode->dir_temp; } - $this->error = $langs->transnoentities("ErrorFailedToWriteInTempDirectory", $conf->barcode->dir_temp); dol_syslog('Error in write_file: ' . $this->error, LOG_ERR); return -1; }