Browse files

Fix problem where Excel files couldn't be opened in Ofccie 2010

I haven't traced the problem, the fix is from one of the comments of http://pear.php.net/bugs/bug.php?id=19284, but for me, this reproducably fixes the issue the Excel 2010 refuses to open the files because they are corrupt
  • Loading branch information...
1 parent 3d0d7aa commit e63587ddb88057cc2e403c48d2f41728ba1044ef @flack flack committed Nov 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 OLE/PPS/Root.php
View
2 OLE/PPS/Root.php
@@ -620,7 +620,7 @@ function _create_header($num_sb_blocks, $num_bb_blocks, $num_pps_blocks)
else
fwrite($FILE, pack("V", -2));
- fwrite($FILE, pack("V", 1));
+ fwrite($FILE, pack("V", $num_sb_blocks));
// Extra BDList Start, Count
if($bbd_info["blockchain_list_entries"] < $bbd_info["header_blockchain_list_entries"])

0 comments on commit e63587d

Please sign in to comment.