From e667947c656a092f3d44b79a88d8d85735267119 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Fri, 29 Sep 2017 16:14:02 +0100 Subject: [PATCH] Fix uninitialised warning --- lib/Pear/LocalLoop/Controller/Admin/Reports.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }