Skip to content

Commit 765fba9

Browse files
author
Dominik Bonsch
committed
PHPOffice#131 added a check if the constant IDENTIFIER_OLE allready exists,
thx to @prolic
1 parent 9de3d5a commit 765fba9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/PHPExcel/Shared/OLERead.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
* @version ##VERSION##, ##DATE##
2626
*/
2727

28-
define('IDENTIFIER_OLE', pack('CCCCCCCC', 0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1));
28+
defined('IDENTIFIER_OLE') ||
29+
define('IDENTIFIER_OLE', pack('CCCCCCCC', 0xd0, 0xcf, 0x11, 0xe0, 0xa1, 0xb1, 0x1a, 0xe1));
2930

3031
class PHPExcel_Shared_OLERead {
3132
private $data = '';

0 commit comments

Comments
 (0)