X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=C4%2FExternal%2FAmazon.pm;h=18e9fcce5598893233e44b90b3405c99b027259f;hb=6cea26595001c823aa5f4224ae61ba5a14ec4bd0;hp=492577cc1d06b72777a4df563fd13fc9813e89e0;hpb=414f8f91b4428f9bc093aaa4954f5ac852db556d;p=koha.git diff --git a/C4/External/Amazon.pm b/C4/External/Amazon.pm index 492577cc1d..18e9fcce55 100644 --- a/C4/External/Amazon.pm +++ b/C4/External/Amazon.pm @@ -80,7 +80,11 @@ Get editorial reviews, customer reviews, and similar products using Amazon Web S =cut sub get_amazon_details { - my ( $isbn, $record, $marcflavour ) = @_; + my ( $isbn, $record, $marcflavour,$awsref ) = @_; + + return unless defined $awsref; + my @aws = @$awsref; + return if $#aws == -1; #normalize the ISBN $isbn = _normalize_match_point ($isbn);