From b671d8376faf2bfdbd117ab5180b31a504c624c2 Mon Sep 17 00:00:00 2001 From: infojunkie Date: Mon, 25 Nov 2013 16:18:46 -0800 Subject: [PATCH] Convert properties to string in OOCalc reader --- Classes/PHPExcel/Reader/OOCalc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/PHPExcel/Reader/OOCalc.php b/Classes/PHPExcel/Reader/OOCalc.php index 10642173..2d9af18d 100644 --- a/Classes/PHPExcel/Reader/OOCalc.php +++ b/Classes/PHPExcel/Reader/OOCalc.php @@ -359,6 +359,7 @@ class PHPExcel_Reader_OOCalc extends PHPExcel_Reader_Abstract implements PHPExce $officePropertyDC = $officePropertyData->children($namespacesMeta['dc']); } foreach($officePropertyDC as $propertyName => $propertyValue) { + $propertyValue = (string) $propertyValue; switch ($propertyName) { case 'title' : $docProps->setTitle($propertyValue); @@ -386,6 +387,7 @@ class PHPExcel_Reader_OOCalc extends PHPExcel_Reader_Abstract implements PHPExce } foreach($officePropertyMeta as $propertyName => $propertyValue) { $propertyValueAttributes = $propertyValue->attributes($namespacesMeta['meta']); + $propertyValue = (string) $propertyValue; switch ($propertyName) { case 'initial-creator' : $docProps->setCreator($propertyValue);