Array ( [IB_CODE] => karter [SEC_CODE] => 4548 [type] => 1?bxrand=1464870999788 )
[type]=1?bxrand=<microtime>
должно быть [type]=1
$_REQUEST["ELEMENT_CODE"] = preg_replace("/((?<=\\?)bxrand=\\d+&?|&bxrand=\\d+\$)/", "", $_REQUEST["ELEMENT_CODE"]);
$_REQUEST["ELEMENT_CODE"] = rtrim($_REQUEST["ELEMENT_CODE"], "?&");
(int) $_GET['type']