Skip to content

Commit

Permalink
Merge pull request kalcaddle#519 from bbbboom/master
Browse files Browse the repository at this point in the history
Fix a zip error
  • Loading branch information
kalcaddle committed Apr 7, 2023
2 parents 3443d9e + 38e5b3c commit 10a45c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/kod/archiveLib/pclzip.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2700,7 +2700,10 @@ function privAddFile($p_filedescr, &$p_header, &$p_options)
}

// ----- 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);
Expand Down

0 comments on commit 10a45c5

Please sign in to comment.