Ods reader fix for property reader when none set (#1064)
* Fix for Ods Property Reader when no core properties are defined * Fix for Ods Property Reader when no meta properties are defined
This commit is contained in:
parent
d8047b071b
commit
094933164d
|
@ -20,13 +20,13 @@ class Properties
|
||||||
$officeProperty = $xml->children($namespacesMeta['office']);
|
$officeProperty = $xml->children($namespacesMeta['office']);
|
||||||
foreach ($officeProperty as $officePropertyData) {
|
foreach ($officeProperty as $officePropertyData) {
|
||||||
/** @var \SimpleXMLElement $officePropertyData */
|
/** @var \SimpleXMLElement $officePropertyData */
|
||||||
$officePropertiesDC = [];
|
$officePropertiesDC = (object) [];
|
||||||
if (isset($namespacesMeta['dc'])) {
|
if (isset($namespacesMeta['dc'])) {
|
||||||
$officePropertiesDC = $officePropertyData->children($namespacesMeta['dc']);
|
$officePropertiesDC = $officePropertyData->children($namespacesMeta['dc']);
|
||||||
}
|
}
|
||||||
$this->setCoreProperties($docProps, $officePropertiesDC);
|
$this->setCoreProperties($docProps, $officePropertiesDC);
|
||||||
|
|
||||||
$officePropertyMeta = [];
|
$officePropertyMeta = (object) [];
|
||||||
if (isset($namespacesMeta['dc'])) {
|
if (isset($namespacesMeta['dc'])) {
|
||||||
$officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']);
|
$officePropertyMeta = $officePropertyData->children($namespacesMeta['meta']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue