diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index 8558666041..2bbccff3a3 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -624,6 +624,10 @@ sub execute_query { return ( $sth, { queryerr => $sth->errstr } ) if ( $sth->err ); + if ( $sql =~ m/password/ ) { + return ( $sth, { passworderr => $sql } ); + } + foreach my $column ( @{ $sth->{NAME_lc} } ) { if ( $column eq 'password' ) { return ( $sth, { passworderr => $column } );