Browse Source

! Commit early, commit often? I should break this Sierra-inspired habit and commit when I've actually finished, not half way through testing. Oops.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
Peter Spicer 11 years ago
parent
commit
e52d4703d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Subs-Attachments.php

+ 1 - 1
Sources/Subs-Attachments.php

@@ -708,7 +708,7 @@ function createAttachment(&$attachmentOptions)
 
 	// It is possible we might have a MIME type that isn't actually an image but still have a size.
 	// For example, Shockwave files will be able to return size but be 'application/shockwave' or similar.
-	if (!empty($attachmentOptions['mime_type']) && strpos($attachmentOptions['mime_time'], 'image/') !== 0)
+	if (!empty($attachmentOptions['mime_type']) && strpos($attachmentOptions['mime_type'], 'image/') !== 0)
 	{
 		$attachmentOptions['width'] = 0;
 		$attachmentOptions['height'] = 0;