From c0a34045df6eb84c2622fcfc69ce48debb365a5d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 20 Nov 2019 09:49:23 +0100 Subject: [PATCH] Bug 23982: Fix the failing test # Failed test 'nb_rows returns 0 on bad queries' # at t/db_dependent/Reports/Guided.t line 441. # got: undef # expected: '0' Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- C4/Reports/Guided.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index 341c78bd91..e20c99b8fc 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -427,7 +427,8 @@ sub nb_rows { my $dbh = C4::Context->dbh; - my ( $sth, $n ); + my $sth; + my $n = 0; my $RaiseError = $dbh->{RaiseError}; my $PrintError = $dbh->{PrintError}; -- 2.39.5