(I could easily be mistaken)

In amazon.module,

line 537: if (empty($item['isbn'])) {
should be: if (!empty($xml->ItemAttributes->ISBN])) {

and

line 540: if (empty($item['ean'])) {
should be: if (!empty($xml->ItemAttributes->EAN])) {

Otherwise the conditions will always evaluate to true.

CommentFileSizeAuthor
#1 amazon.broken_conditions_1014128_01.patch652 bytesrfay
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rfay’s picture

Status: Active » Needs review
FileSize
652 bytes

Yep, thanks for the report. No-brainer... but it means this code has never been used.

rfay’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.