From: Craig Andrews Date: Thu, 11 Mar 2010 22:26:59 +0000 (-0500) Subject: A null mimetype is not an enclosure (more likely than not means there was an error) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=74fd75555669cfe0a53b6cbc50a425e6f9f093d1;p=quix0rs-gnu-social.git A null mimetype is not an enclosure (more likely than not means there was an error) --- diff --git a/classes/File.php b/classes/File.php index 8c788c0079..33273bbdcc 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){