1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02: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 = trim(file_get_contents(e_ADMIN.$def_file));
$a_filetypes = explode(',', $a_filetypes); $a_filetypes = explode(',', $a_filetypes);
} }
else
{ // Its an 'override' array
$a_filetypes = explode(',', $def_file);
}
foreach ($a_filetypes as $ftype) foreach ($a_filetypes as $ftype)
{ {
$ftype = strtolower(trim(str_replace('.', '', $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; $ret[$ftype] = -1;
} }