]> git.donarmstrong.com Git - biopieces.git/blobdiff - www/index.cgi
fixed 0 defined bug in BGB
[biopieces.git] / www / index.cgi
index 1dfeb539862cb92daf81e3f598a109b5366e6aab..265624cf577d95eb9f94c5f56d10897161092848 100755 (executable)
@@ -147,8 +147,8 @@ sub cookie_default
     $cookie->{ 'NAV_START' }     ||= defined $cgi->param( 'nav_start' ) ? $cgi->param( 'nav_start' ) : $session->{ 'NAV_START' };
     $cookie->{ 'NAV_END' }       ||= defined $cgi->param( 'nav_end' )   ? $cgi->param( 'nav_end' )   : $session->{ 'NAV_END' };
     $cookie->{ 'NAV_CENTER' }      = $cgi->param( 'nav_center' );
-    $cookie->{ 'S_BEG' }           = $cgi->param( 's_beg' )       || $session->{ 'S_BEG' };
-    $cookie->{ 'S_END' }           = $cgi->param( 's_end' )       || $session->{ 'S_END' };
+    $cookie->{ 'S_BEG' }           = defined $cgi->param( 's_beg' ) ? $cgi->param( 's_beg' ) : $session->{ 'S_BEG' };
+    $cookie->{ 'S_END' }           = defined $cgi->param( 's_end' ) ? $cgi->param( 's_end' ) : $session->{ 'S_END' };
     $cookie->{ 'STRAND' }          = $cgi->param( 'strand' )      || $session->{ 'STRAND' };
     $cookie->{ 'TRACK' }           = $cgi->param( 'track' );
     $cookie->{ 'ZOOM_IN1' }        = $cgi->param( 'zoom_in1' );