Update files.lib.php
This commit is contained in:
parent
a66560ee93
commit
fd8cbd9a93
@ -1911,7 +1911,7 @@ function dol_compress_file($inputfile, $outputfile, $mode = "gz")
|
|||||||
dol_syslog("Class ZipArchive is set so we zip using ZipArchive to zip into ".$outputfile.' rootPath='.$rootPath);
|
dol_syslog("Class ZipArchive is set so we zip using ZipArchive to zip into ".$outputfile.' rootPath='.$rootPath);
|
||||||
$zip = new ZipArchive;
|
$zip = new ZipArchive;
|
||||||
|
|
||||||
if ($zip->open($outputfile, ZipArchive::CREATE)!==TRUE) {
|
if ($zip->open($outputfile, ZipArchive::CREATE)!==true) {
|
||||||
$errormsg="Failed to open file ".$outputfile."\n";
|
$errormsg="Failed to open file ".$outputfile."\n";
|
||||||
dol_syslog("dol_compress_file failure - ".$errormsg, LOG_ERR);
|
dol_syslog("dol_compress_file failure - ".$errormsg, LOG_ERR);
|
||||||
return -6;
|
return -6;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user