From 2636b98f31206a9b6a6cd851a56c50310dcea374 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Mon, 18 Jan 2016 03:30:44 +0000 Subject: [PATCH] [SIGNED-OFF]Bug 15416: Warns on guided_reports.pl Initialising $phase variable to be '' if not defined. To test: 1) Go to Reports -> Guided Reports Wizard 2) Notice warns 3) Apply patch 4) Refresh page 5) Confirm warns are gone and page still works as it should Signed-off-by: Hector Castro Warns are gone. Page still works as expected --- reports/guided_reports.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index 6a03e11..8ba701f 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -48,6 +48,7 @@ my $input = new CGI; my $usecache = C4::Context->ismemcached; my $phase = $input->param('phase'); +$phase //= ''; my $flagsrequired; if ( $phase eq 'Build new' or $phase eq 'Delete Saved' ) { $flagsrequired = 'create_reports'; -- 1.7.10.4