zendframework / ZendService_Amazon

BSD 3-Clause "New" or "Revised" License
29 stars 37 forks source link

ResultSet::totalResults() fails when !ResultSet::valid() #45

Closed troxler closed 10 years ago

troxler commented 10 years ago

When an invalid response was returned by Amazon (e.g. RequestThrottled), using ResultSet::totalResults() results in the following error:

Notice: Trying to get property of non-object in /.../ZendService/Amazon/ResultSet.php on line 73.

That method should first check whether or not the response is valid.

troxler commented 10 years ago

This appears to be fixed in the development version as can be seen in #39. There has not been a release for over a year, though.