Fix uninitialised warning

This commit is contained in:
Tom Bloor 2017-09-29 16:14:02 +01:00
parent a739b02eed
commit e667947c65

View file

@ -7,7 +7,7 @@ sub transaction_data {
my $c = shift; my $c = shift;
my $quantised_column = 'quantised_hours'; my $quantised_column = 'quantised_hours';
if ( $c->param('scale') eq 'days' ) { if ( defined $c->param('scale') && $c->param('scale') eq 'days' ) {
$quantised_column = 'quantised_days'; $quantised_column = 'quantised_days';
} }