Menu

#9 tags_getListUserRaw only returns first tag...

open
nobody
None
5
2008-03-03
2008-03-03
Anonymous
No

When you call tags_getListUserRaw with a "NULL" tag list it only returns the first tag for the authenticated user. This should return a list of all tags for that user as stated by the flickr documentation.

This is fixed by editing line 1302 of the phpFlicker.php file from:

return $this->parsed_response ? $this->parsed_response['who']['tags']['tag'][0]['raw'] : false;

To read instead:

return $this->parsed_response ? $this->parsed_response['who']['tags']['tag'] : false;

Not sure if this is a bug or a conscience decision to make calls with one tag return a valid response. In either case it is damn confusing.

Discussion


Log in to post a comment.