diff --git a/lib/Pear/LocalLoop/Controller/Admin/Reports.pm b/lib/Pear/LocalLoop/Controller/Admin/Reports.pm index a8be888..94351d6 100644 --- a/lib/Pear/LocalLoop/Controller/Admin/Reports.pm +++ b/lib/Pear/LocalLoop/Controller/Admin/Reports.pm @@ -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'; }