@@ -, +, @@ # Failed test 'nb_rows returns 0 on bad queries' # at t/db_dependent/Reports/Guided.t line 441. # got: undef # expected: '0' --- C4/Reports/Guided.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/C4/Reports/Guided.pm +++ a/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}; --