Skip to content

Commit

Permalink
Merge pull request #54 from bywatersolutions/coverflow
Browse files Browse the repository at this point in the history
Update for bug 26669
  • Loading branch information
kidclamp committed May 5, 2022
2 parents 72a182c + 0d4c92c commit adf13e5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Koha/Plugin/Com/ByWaterSolutions/CoverFlow.pm
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,17 @@ sub get_report {
# convert SQL parameters to placeholders
$sql =~ s/(<<.*?>>)/\?/g;

my ( $sth, $errors ) =
execute_query( $sql, $offset, $limit, $sql_params );
my ( $sth, $errors );
if ( C4::Context->preference('Version') ge '21.110000' ) {
( $sth, $errors ) = execute_query({
sql => $sql,
offset => $offset,
limit => $limit,
sql_params => $sql_params
});
} else {
( $sth, $errors ) = execute_query( $sql, $offset, $limit, $sql_params );
}
if ($sth) {
my $lines;
$lines = $sth->fetchall_arrayref( {} );
Expand Down

0 comments on commit adf13e5

Please sign in to comment.