diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index bcd36df689..fcad6bfbd8 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -616,12 +616,12 @@ sub execute_query { warn $@ if $@; 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" } ); } }