followup to prior patch: remove $toggle from script
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 31 Dec 2008 16:10:02 +0000 (10:10 -0600)
committerChris Cormack <chris@bigballofwax.co.nz>
Fri, 4 Sep 2009 06:53:58 +0000 (18:53 +1200)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
admin/systempreferences.pl

index 4009a10..d9a37b3 100755 (executable)
@@ -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&amp;searchfield=" . $results->[$i]{'variable'};
         $row_data->{delete} = "$script_name?op=delete_confirm&amp;searchfield=" . $results->[$i]{'variable'};
         push( @loop_data, $row_data );