diff --git a/sections/requests/new_edit.php b/sections/requests/new_edit.php index 8ef10abd..93da9cc8 100644 --- a/sections/requests/new_edit.php +++ b/sections/requests/new_edit.php @@ -61,11 +61,7 @@ if($BitrateList == "Any") { $BitrateArray = array_keys($Bitrates); } else { - foreach ($Bitrates as $Key => $Val) { - if(strpos($BitrateList, $Val) !== false) { - $BitrateArray[] = $Key; - } - } + $BitrateArray = array_keys(array_intersect($Bitrates,explode('|', $BitrateList))); } $FormatArray = array();