From 538ce7b2e36cfff42fc405ef36e78a1d0516eb0f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 31 Dec 2008 10:10:02 -0600 Subject: [PATCH] followup to prior patch: remove $toggle from script Signed-off-by: Galen Charlton --- admin/systempreferences.pl | 7 ------- 1 file changed, 7 deletions(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index a5cdd8dd44..b71d8d2438 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -673,18 +673,11 @@ if ( $op eq 'add_form' ) { my $tab = $input->param('tab'); $template->param( $tab => 1 ); my ( $count, $results ) = StringSearch( $searchfield, $tab ); - my $toggle = 0; my @loop_data = (); for ( my $i = $offset ; $i < ( $offset + $pagesize < $count ? $offset + $pagesize : $count ) ; $i++ ) { - if ( $toggle == 0 ) { - $toggle = 1; - } else { - $toggle = 0; - } my $row_data = $results->[$i]; $row_data->{'lang'} = $template->param('lang'); $row_data = GetPrefParams($row_data); # get a fresh hash for the row data - $row_data->{toggle} = $toggle; $row_data->{edit} = "$script_name?op=add_form&searchfield=" . $results->[$i]{'variable'}; $row_data->{delete} = "$script_name?op=delete_confirm&searchfield=" . $results->[$i]{'variable'}; push( @loop_data, $row_data ); -- 2.39.5