Fix uninitialised warning
This commit is contained in:
parent
a739b02eed
commit
e667947c65
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ sub transaction_data {
|
|||
my $c = shift;
|
||||
|
||||
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';
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue