diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-03-11 17:26:59 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-03-11 17:27:25 -0500 |
commit | 74fd75555669cfe0a53b6cbc50a425e6f9f093d1 (patch) | |
tree | 81da255d878b9c4c1239c163af54e1df10b4f366 /classes | |
parent | 20cb9fa28f865ecfcec31d5285950516172b8326 (diff) |
A null mimetype is not an enclosure (more likely than not means there was an error)
Diffstat (limited to 'classes')
-rw-r--r-- | classes/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/File.php b/classes/File.php index 8c788c007..33273bbdc 100644 --- a/classes/File.php +++ b/classes/File.php @@ -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){ |