Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Commit 9f93cab

Browse files
author
Mark Baker
committed
Merge pull request #276 from infojunkie/OOCalcReaderXML
Convert properties to string in OOCalc reader
2 parents c7a6431 + b671d83 commit 9f93cab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/PHPExcel/Reader/OOCalc.php

+2
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
359359
$officePropertyDC = $officePropertyData->children($namespacesMeta['dc']);
360360
}
361361
foreach($officePropertyDC as $propertyName => $propertyValue) {
362+
$propertyValue = (string) $propertyValue;
362363
switch ($propertyName) {
363364
case 'title' :
364365
$docProps->setTitle($propertyValue);
@@ -386,6 +387,7 @@ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
386387
}
387388
foreach($officePropertyMeta as $propertyName => $propertyValue) {
388389
$propertyValueAttributes = $propertyValue->attributes($namespacesMeta['meta']);
390+
$propertyValue = (string) $propertyValue;
389391
switch ($propertyName) {
390392
case 'initial-creator' :
391393
$docProps->setCreator($propertyValue);

0 commit comments

Comments
 (0)