Update files.lib.php

This commit is contained in:
Jean Traullé 2019-08-15 16:23:01 +02:00 committed by GitHub
parent a66560ee93
commit fd8cbd9a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
$zip = new ZipArchive;
if ($zip->open($outputfile, ZipArchive::CREATE)!==TRUE) {
if ($zip->open($outputfile, ZipArchive::CREATE)!==true) {
$errormsg="Failed to open file ".$outputfile."\n";
dol_syslog("dol_compress_file failure - ".$errormsg, LOG_ERR);
return -6;