]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed minor BGB bug
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sun, 14 Mar 2010 17:54:34 +0000 (17:54 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sun, 14 Mar 2010 17:54:34 +0000 (17:54 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@902 74ccb610-7750-0410-82ae-013aeee3265d

www/index.cgi

index 62e62491e854722de741a9fa56118c3c34491edc..9734938be5d148beb7eff7e44120e46c78c77523 100755 (executable)
@@ -144,8 +144,8 @@ sub cookie_default
     $cookie->{ 'ASSEMBLY' }        = $cgi->param( 'assembly' )    || $session->{ 'ASSEMBLY' };
     $cookie->{ 'CONTIG' }          = $cgi->param( 'contig' )      || $session->{ 'CONTIG' };
     $cookie->{ 'Q_ID' }            = $cgi->param( 'q_id' )        || $session->{ 'Q_ID' };
-    $cookie->{ 'NAV_START' }       = defined $cgi->param( 'nav_start' ) ? $cgi->param( 'nav_start' ) : $session->{ 'NAV_START' };
-    $cookie->{ 'NAV_END' }         = $cgi->param( 'nav_end' )     || $session->{ 'NAV_END' };
+    $cookie->{ 'NAV_START' }     ||= defined $cgi->param( 'nav_start' ) ? $cgi->param( 'nav_start' ) : $session->{ 'NAV_START' };
+    $cookie->{ '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' };