From b13a9364c9112a6df26ec92f12fd43c47110a9d4 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Thu, 28 Jan 2021 10:42:15 +0100 Subject: [PATCH] Bug 27432: (QA follow-up) fix if report_id --- C4/Reports/Guided.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index f6ba49c7b4..0c9b62bd26 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -542,7 +542,7 @@ sub execute_query { my ( $sql, $offset, $limit, $sql_params, $report_id ) = @_; $sql_params = [] unless defined $sql_params; - my $report = Koha::Reports->find($report_id) if $report_id; + my $report = $report_id ? Koha::Reports->find($report_id) : undef; my $report_name = $report ? $report->report_name : 'Unknown report'; # check parameters -- 2.30.2