Skip to content

Commit

Permalink
Merge pull request #319 from StudioMaX/typo-zip-mime-type
Browse files Browse the repository at this point in the history
Typo when determining the mime-type of files in the ZIP archive
  • Loading branch information
JamesHeinrich committed May 14, 2021
2 parents 897de38 + d25a3a2 commit 6e2e30f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions getid3/module.archive.zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ public function Analyze() {
!empty($info['zip']['files']['docProps']['core.xml'])) {
// http://technet.microsoft.com/en-us/library/cc179224.aspx
$info['fileformat'] = 'zip.msoffice';
if (!empty($ThisFileInfo['zip']['files']['ppt'])) {
if (!empty($info['zip']['files']['ppt'])) {
$info['mime_type'] = 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
} elseif (!empty($ThisFileInfo['zip']['files']['xl'])) {
} elseif (!empty($info['zip']['files']['xl'])) {
$info['mime_type'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
} elseif (!empty($ThisFileInfo['zip']['files']['word'])) {
} elseif (!empty($info['zip']['files']['word'])) {
$info['mime_type'] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
}
}
Expand Down

0 comments on commit 6e2e30f

Please sign in to comment.