Merge pull request #519 from bbbboom/master

Fix a zip error
pull/522/head
warlee 2023-04-07 15:43:08 +08:00 committed by GitHub
commit 10a45c5ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -2700,7 +2700,10 @@
}
// ----- Read the file content
$v_content = @fread($v_file, $p_header['size']);
$v_content = '';
if ($p_header['size'] > 0) {
$v_content = @fread($v_file, $p_header['size']);
}
// ----- Close the file
@fclose($v_file);