From: Nick Holliday Date: Wed, 24 Mar 2010 23:30:27 +0000 (+0000) Subject: Fixes problem with IRC URLs showing as attachments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=92ded7c6cb56056a89bc8b3caabd08049104898e;p=quix0rs-gnu-social.git Fixes problem with IRC URLs showing as attachments --- diff --git a/classes/File.php b/classes/File.php index 33273bbdcc..c9477f5f1e 100644 --- a/classes/File.php +++ b/classes/File.php @@ -286,7 +286,9 @@ class File extends Memcached_DataObject if(! isset($this->filename)){ $notEnclosureMimeTypes = array(null,'text/html','application/xhtml+xml'); - $mimetype = strtolower($this->mimetype); + if($mimetype != null){ + $mimetype = strtolower($this->mimetype); + } $semicolon = strpos($mimetype,';'); if($semicolon){ $mimetype = substr($mimetype,0,$semicolon);