From e39f72c22b2e1e2b6f4ec942699bcba3972e39b2 Mon Sep 17 00:00:00 2001 From: Lukas Mueller Date: Tue, 2 Oct 2012 19:28:36 -0400 Subject: [PATCH] fix typo that caused crash. --- lib/CXGN/Cview/ViewMaps.pm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/CXGN/Cview/ViewMaps.pm b/lib/CXGN/Cview/ViewMaps.pm index 9bfbe39..20637dd 100644 --- a/lib/CXGN/Cview/ViewMaps.pm +++ b/lib/CXGN/Cview/ViewMaps.pm @@ -145,8 +145,8 @@ sub generate_image { $self->get_cache()->set_key("view_maps".(join "-", map { $_->get_id() } ($self->get_maps()))); $self->get_cache()->set_expiration_time(86400); - - + + if (! $self->get_cache()->is_valid()) { my $map_width = $self->{map_width} = 720; my $x_distance = $map_width/4; # the number of pixels the different elements are spaced @@ -251,7 +251,8 @@ sub generate_image { $self->get_cache()->set_map_name("viewmap"); $self->get_cache()->set_image_data($self->{map}->render_png_string()); $self->get_cache()->set_image_map_data($self->{map}->get_image_map("viewmap")); - + + } } @@ -268,7 +269,7 @@ sub get_select_toolbar { push @selects, CXGN::Cview::Utils::get_maps_select($self->get_dbh(), undef, $names[$i], $self->get_db_backend()); } } - + return join '', map "$_\n", ( '
', info_table_html( @@ -276,10 +277,11 @@ sub get_select_toolbar { 'Center' => $selects[1], 'Right' => $selects[2], __border => 0, - ), + ), '', '
', - ); + ); + } =head2 function error_message_page() -- 2.11.4.GIT