Zend Framework

Service_Amazon_Item: when the Authros node have more than three items (TRAC#135)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 0.1.3
  • Fix Version/s: 0.7.0
  • Component/s: Zend_Service_Amazon
  • Labels:
    None

Description

http://framework.zend.com/developer/ticket/135

At the node with many items like Authors and Actors, when they have more than three items, I got a resultset 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);
>                     }

06/08/06 20:46:28: Modified by ishinao@ishinao.net

Sorry, I forgot to write the target filename. It is "Zend/Service/Amazon/Item.php".

Issue Links

Activity

Hide
Darby Felton added a comment -

Duplicates ZF-83

Show
Darby Felton added a comment - Duplicates ZF-83
Hide
Wil Sinclair added a comment -

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

Show
Wil Sinclair added a comment - Bookkeeping. Closing old issues and assigning them to the person who ultimately resolved the issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: