1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Remove unneeded feature

This commit is contained in:
e107steved 2010-03-27 17:12:21 +00:00
parent 69d59f28ff
commit 494874bdc6

View File

@ -632,14 +632,10 @@ function vet_file($filename, $target_name, $allowed_filetypes = '', $unknown = F
$a_filetypes = trim(file_get_contents(e_ADMIN.$def_file));
$a_filetypes = explode(',', $a_filetypes);
}
else
{ // Its an 'override' array
$a_filetypes = explode(',', $def_file);
}
foreach ($a_filetypes as $ftype)
{
$ftype = strtolower(trim(str_replace('.', '', $ftype)));
if (!$file_mask || in_array($ftype, $file_array))
if ($ftype && (!$file_mask || in_array($ftype, $file_array)))
{
$ret[$ftype] = -1;
}