Do not try to read document protection if not present
This commit is contained in:
parent
94be56b0ec
commit
453ddf078b
|
|
@ -588,6 +588,8 @@ abstract class AbstractPart
|
|||
return $possibleAttribute;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
return $attributes;
|
||||
|
|
|
|||
|
|
@ -109,8 +109,10 @@ class Settings extends AbstractPart
|
|||
$documentProtection = $phpWord->getSettings()->getDocumentProtection();
|
||||
|
||||
$edit = $xmlReader->getAttribute('w:edit', $node);
|
||||
if ($edit !== null) {
|
||||
$documentProtection->setEditing($edit);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the proof state
|
||||
|
|
|
|||
Loading…
Reference in New Issue