Changeset 3003

Show
Ignore:
Timestamp:
07/08/2008 09:32:12 AM (5 months ago)
Author:
Shadowhand
Message:

Fixing #677, thanks Tyrael.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/forge/libraries/Form_Upload.php

    r2965 r3003  
    141141                foreach ($types as $type) 
    142142                { 
    143                         if (in_array($mime, Config::item('mimes.'.$type))) 
     143                        // Load the mime types 
     144                        $type = Config::item('mimes.'.$type); 
     145 
     146                        if (is_array($type) AND in_array($mime, $type)) 
    144147                        { 
    145148                                // Type is valid