Fix regression in 92ded7c6cb56056a89bc8b3caabd08049104898e: spewed PHP notices when checking for enclosures due to uninitialized variables.

This commit is contained in:
Brion Vibber 2010-06-28 15:20:50 -04:00
parent 83c2e0b379
commit dcfe5b24f6
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}