ZF-7097: Zend_Service_Amazon_EditorialReview gives an error on missing element

Description

When I call the ItemLookup für die ASIN "B002ACP13M" I receive an Notice as it is "Trying to get property of non-object ". On a closer look into the xml data from Amazon it delivers only an Content Tag and no Source Tag...

Comments

I have the same problem with Zend_Service_Amazon_EditorialReview (Trying to get property of non-object...), because the xpath with "Source" isn´t find (in my case). A possible bugfix is the following code (like in Zend_Service_Amazon_CustomerReview):

$result = $xpath->query("./az:$el/text()", $dom); if ($result->length == 1) { $this->$el = (string) $result->item(0)->data; }

I hope, i could help. (Sorry, for my bad english)