ZF-83: when more than three Author nodes exist

Description

moved from trac's ticket#135

At the node with multiple items like Authors or Actors, when it has more than three items, Zend_Service_Amazon_Item returns invalid data like following.

array( 0 => array( 0 => 'author1', 1 => 'author2' ), 1 => 'author3' )

it will be,

array( 0 => 'author1', 1 => 'author2', 2 => 'author3' )

76c76,80

< $this->{$v->parentNode->tagName} = array($this->{$v->parentNode->tagName}, (string) $v->data);

                if (is_array($this->{$v->parentNode->tagName})) {
                    array_push($this->{$v->parentNode->tagName}, (string) $v->data);
                } else {
                    $this->{$v->parentNode->tagName} = array($this->{$v->parentNode->tagName}, (string) $v->data);
                }

Comments

Fixed

  • Davey

Bookkeeping. Closing old issues and assigning them to the person who ultimately resolved the issue.