From 0bd3a9c60ad8ae39ad3f6f44ec057b61212483f6 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sun, 16 Apr 2017 16:20:33 +0900 Subject: [PATCH] HHVM compatibility fix --- src/PhpSpreadsheet/Reader/Ods.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;