View | Details | Raw Unified | Return to bug 37508
Collapse All | Expand All

(-)a/C4/Reports/Guided.pm (-2 / +2 lines)
Lines 615-625 sub execute_query { Link Here
615
    };
615
    };
616
    warn $@ if $@;
616
    warn $@ if $@;
617
617
618
    return ( $sth, { queryerr => $sth->errstr } ) if ($sth->err);
619
618
    # Check if table.* contained forbidden column names
620
    # Check if table.* contained forbidden column names
619
    return ( $sth, { passworderr => "Illegal column in results" } )
621
    return ( $sth, { passworderr => "Illegal column in results" } )
620
        if Koha::Report->new->check_columns( undef, $sth->{NAME_lc} );
622
        if Koha::Report->new->check_columns( undef, $sth->{NAME_lc} );
621
623
622
    return ( $sth, { queryerr => $sth->errstr } ) if ($sth->err);
623
    return ( $sth );
624
    return ( $sth );
624
}
625
}
625
626
626
- 

Return to bug 37508