From 526896d2e66efe584348ae036618d3b0ef591884 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 31 Oct 2016 11:12:07 +0800 Subject: [PATCH] * fix error for pclzip. --- lib/pclzip/pclzip.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pclzip/pclzip.class.php b/lib/pclzip/pclzip.class.php index e7facc1eaa..ea36fbd689 100644 --- a/lib/pclzip/pclzip.class.php +++ b/lib/pclzip/pclzip.class.php @@ -2670,7 +2670,7 @@ } // ----- Read the file content - $v_content = @fread($v_file, $p_header['size']); + $v_content = $p_header['size'] ? @fread($v_file, $p_header['size']) : ''; // ----- Close the file @fclose($v_file);