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

Commit

Permalink
Merge pull request #276 from infojunkie/OOCalcReaderXML
Browse files Browse the repository at this point in the history
Convert properties to string in OOCalc reader
  • Loading branch information
Mark Baker committed Dec 1, 2013
2 parents c7a6431 + b671d83 commit 9f93cab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/PHPExcel/Reader/OOCalc.php
Expand Up @@ -359,6 +359,7 @@ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
$officePropertyDC = $officePropertyData->children($namespacesMeta['dc']);
}
foreach($officePropertyDC as $propertyName => $propertyValue) {
$propertyValue = (string) $propertyValue;
switch ($propertyName) {
case 'title' :
$docProps->setTitle($propertyValue);
Expand Down Expand Up @@ -386,6 +387,7 @@ public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
}
foreach($officePropertyMeta as $propertyName => $propertyValue) {
$propertyValueAttributes = $propertyValue->attributes($namespacesMeta['meta']);
$propertyValue = (string) $propertyValue;
switch ($propertyName) {
case 'initial-creator' :
$docProps->setCreator($propertyValue);
Expand Down

0 comments on commit 9f93cab

Please sign in to comment.