Sparviero's suggestion fixes an error where PHP complains that the class is attempting to perform an operation on an unitialised or non-existent zip archive object.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
class.odt.php@285
should be
if (!$document->open($fileName, ZipArchive::CREATE|ZIPARCHIVE::OVERWRITE)) {
Why ?
Sparviero's suggestion fixes an error where PHP complains that the class is attempting to perform an operation on an unitialised or non-existent zip archive object.