--- alx-src/branches/alx-web-070/index.php 2019/07/10 08:20:35 13244 +++ alx-src/branches/alx-web-070/index.php 2019/07/10 08:54:02 13245 @@ -25,9 +25,17 @@ if(isset($_GET['s_krit'])) { $_SESSION['alx_sort_krit']=$_GET['s_krit']; - $_SESSION['alx_sort_onfirst']=0+$_GET['s_on']; - $_SESSION['alx_sort_loc']['DEAD']=$_GET['s_dead']; - foreach($locations as $l) $_SESSION['alx_sort_loc'][$l]=$_GET['s_'.$l]; + + if(isset($_GET['s_on'])) $_SESSION['alx_sort_onfirst']=0+$_GET['s_on']; + else $_SESSION['alx_sort_onfirst']=0+NULL; + + if(isset($_GET['s_dead'])) $_SESSION['alx_sort_loc']['DEAD']=$_GET['s_dead']; + else $_SESSION['alx_sort_loc']['DEAD']=NULL; + + foreach($locations as $l) { + if(isset($_GET['s_'.$l])) $_SESSION['alx_sort_loc'][$l]=$_GET['s_'.$l]; + else $_SESSION['alx_sort_loc'][$l]=NULL; + } } function check_online($dat, $bla)