This commit is contained in:
Fred Tempez 2018-04-05 19:07:06 +02:00
parent 8b6a655123
commit a22311bb93
1 changed files with 2 additions and 9 deletions

View File

@ -234,16 +234,9 @@ if (!isset($_GET['type'])){
$extensions=null; $extensions=null;
if (isset($_GET['extensions'])){ if (isset($_GET['extensions'])){
$extensions = json_decode(urldecode($_GET['extensions'])); $extensions = explode(',', urldecode($_GET['extensions']));
$ext_tmp = array();
foreach($extensions as $extension){
$extension = fix_strtolower($extension);
if(in_array( $extension, $config['ext'])){
$ext_tmp[]=$extension;
}
}
if($extensions){ if($extensions){
$ext = $ext_tmp; $ext = $extensions;
$show_filter_buttons = false; $show_filter_buttons = false;
} }
} }