HHVM compatibility fix

This commit is contained in:
Adrien Crivelli 2017-04-16 16:20:33 +09:00
parent a06533f766
commit 0bd3a9c60a
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 3 additions and 3 deletions

View File

@ -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;