From da826c4bc7a37b99a6cf41411cc2dc0a7281e517 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 27 Feb 2019 01:22:26 +0100 Subject: [PATCH] Fix bad var name --- htdocs/compta/compta-files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/compta-files.php b/htdocs/compta/compta-files.php index 33f8b2dcb96..be08e264a02 100644 --- a/htdocs/compta/compta-files.php +++ b/htdocs/compta/compta-files.php @@ -243,7 +243,7 @@ if ($result && $action == "dl") $log='date,type,ref,total,paid,filename,item_id'."\n"; $zipname = $dirfortmpfile.'/'.dol_print_date($date_start, 'dayrfc')."-".dol_print_date($date_stop, 'dayrfc').'_export.zip'; - dol_delete_file(name); + dol_delete_file($zipname); $zip = new ZipArchive; $res = $zip->open($zipname, ZipArchive::OVERWRITE|ZipArchive::CREATE);