From: Brion Vibber Date: Mon, 28 Jun 2010 19:20:50 +0000 (-0400) Subject: Fix regression in 92ded7c6cb56056a89bc8b3caabd08049104898e: spewed PHP notices when... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dcfe5b24f6047aa830f107628aa3c10b9d292951;p=quix0rs-gnu-social.git Fix regression in 92ded7c6cb56056a89bc8b3caabd08049104898e: spewed PHP notices when checking for enclosures due to uninitialized variables. --- diff --git a/classes/File.php b/classes/File.php index 0cd31075d2..0f230a6ee5 100644 --- a/classes/File.php +++ b/classes/File.php @@ -302,6 +302,7 @@ class File extends Memcached_DataObject if(! isset($this->filename)){ $notEnclosureMimeTypes = array(null,'text/html','application/xhtml+xml'); + $mimetype = $this->mimetype; if($mimetype != null){ $mimetype = strtolower($this->mimetype); }