From 36f72775fe4fca9e5553ae18e383b8ca634f84ce Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Tue, 8 Jul 2008 16:31:04 -0500 Subject: [PATCH] fix for 2322: Failure to reach amazon.com to retrieve enhanced content causes fatal error in Koha --- C4/Amazon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2