Как исправить Notice: Undefined index: act in
//FOR MOBILE VERSION 1.0
if($_GET['act'] == 'change_mobile') $_SESSION['mobile'] = 1;
if($_GET['act'] == 'change_fullver'){
$_SESSION['mobile'] = 2;
header('Location: /news');
}
//FOR MOBILE VERSION 1.0
$act = filter_input(INPUT_GET, 'act');
if($act == 'change_mobile') $_SESSION['mobile'] = 1;
if($act == 'change_fullver'){
$_SESSION['mobile'] = 2;
header('Location: /news');
}