]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
A null mimetype is not an enclosure (more likely than not means there was an error)
authorCraig Andrews <candrews@integralblue.com>
Thu, 11 Mar 2010 22:26:59 +0000 (17:26 -0500)
committerCraig Andrews <candrews@integralblue.com>
Thu, 11 Mar 2010 22:27:25 +0000 (17:27 -0500)
classes/File.php

index 8c788c0079196e827fb8fc770c09cf3e642ea60d..33273bbdccb577047e545f77504da008cd31fd35 100644 (file)
@@ -285,7 +285,7 @@ class File extends Memcached_DataObject
         $enclosure->mimetype=$this->mimetype;
 
         if(! isset($this->filename)){
-            $notEnclosureMimeTypes = array('text/html','application/xhtml+xml');
+            $notEnclosureMimeTypes = array(null,'text/html','application/xhtml+xml');
             $mimetype = strtolower($this->mimetype);
             $semicolon = strpos($mimetype,';');
             if($semicolon){