Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 74fca575

Von Sven Schöling vor fast 13 Jahren hinzugefügt

  • ID 74fca575d438232002756175338c23f55b8a6c12
  • Vorgänger 4000444b
  • Nachfolger 45970e73

Fixes für das "my $var if $cond;" pattern.

Unterschiede anzeigen:

SL/USTVA.pm
113 113
  my $attribute  = $arg_ref->{attribute}; #
114 114
  my $dec_places = (defined $arg_ref->{dec_places}) ? $arg_ref->{dec_places}:undef;
115 115

  
116
  my $where_type = "AND tax.report_headings.type = '$type'" if ( $type );
117
  my $where_dcp  = "AND tax.report_variables.dec_places = '$dec_places'" if ( defined $dec_places );
116
  my $where_type = $type ? "AND tax.report_headings.type = '$type'" : '';
117
  my $where_dcp  = defined $dec_places ? "AND tax.report_variables.dec_places = '$dec_places'" : '';
118 118

  
119 119
  my $query = qq|
120 120
    SELECT $attribute

Auch abrufbar als: Unified diff