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
Posted by Davey Shafik (davey) on 2006-10-08T04:40:32.000+0000
Fixed
Posted by Wil Sinclair (wil) on 2008-12-19T13:54:38.000+0000
Bookkeeping. Closing old issues and assigning them to the person who ultimately resolved the issue.