A null mimetype is not an enclosure (more likely than not means there was an error)

This commit is contained in:
Craig Andrews 2010-03-11 17:26:59 -05:00
parent 20cb9fa28f
commit 74fd755556
1 changed files with 1 additions and 1 deletions

View 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){