diff --git a/src/PhpSpreadsheet/Reader/Ods.php b/src/PhpSpreadsheet/Reader/Ods.php index ac629aca..13f48ea4 100644 --- a/src/PhpSpreadsheet/Reader/Ods.php +++ b/src/PhpSpreadsheet/Reader/Ods.php @@ -773,9 +773,9 @@ class Ods extends BaseReader implements IReader // It's a space // Multiple spaces? - if (isset($child->attributes['text:c'])) { - /** @var \DOMAttr $cAttr */ - $cAttr = $child->attributes['text:c']; + /** @var \DOMAttr $cAttr */ + $cAttr = $child->attributes->getNamedItem('c'); + if ($cAttr) { $multiplier = (int) $cAttr->nodeValue; } else { $multiplier = 1;