diff --git a/C4/Amazon.pm b/C4/Amazon.pm index b22d83748f..de46686479 100644 --- a/C4/Amazon.pm +++ b/C4/Amazon.pm @@ -86,7 +86,7 @@ sub get_amazon_details { my $response = $xmlsimple->XMLin( $content, forcearray => [ qw(SimilarProduct EditorialReview Review) ], - ); + ) unless !$content; return $response; }