diff --git a/src/WrkLst/DocxMustache/DocxMustache.php b/src/WrkLst/DocxMustache/DocxMustache.php index 8385381..e4f51dc 100644 --- a/src/WrkLst/DocxMustache/DocxMustache.php +++ b/src/WrkLst/DocxMustache/DocxMustache.php @@ -220,7 +220,7 @@ protected function AddContentType($imageCt = 'jpeg') //check if content type for jpg has been set $i = 0; $ct_already_set = false; - foreach ($ct_file as $ct) { + foreach ($ct_file->Default as $ct) { if ((string) $ct_file->Default[$i]['Extension'] == $imageCt) { $ct_already_set = true; }