diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index 2bbccff3a3..481eb0962e 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -625,12 +625,12 @@ sub execute_query { return ( $sth, { queryerr => $sth->errstr } ) if ( $sth->err ); if ( $sql =~ m/password/ ) { - return ( $sth, { passworderr => $sql } ); + return ( $sth, { passworderr => "Illegal column in SQL" } ); } foreach my $column ( @{ $sth->{NAME_lc} } ) { if ( $column eq 'password' ) { - return ( $sth, { passworderr => $column } ); + return ( $sth, { passworderr => "Illegal column in results" } ); } }