PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » Services_Delicious » Bug #9634

foreach error on empty array

Details

Submitted2006-12-16 00:58 UTC
Fromofficeman at freenet dot de
Assignedttsuruoka
StatusClosed
PackageServices_Delicious
PHP VersionIrrelevant
OSall
Roadmaps(Not assigned)

Comments

[2006-12-16 00:58 UTC] officeman at freenet dot de

Description:
------------
when a user has no bookmarks and you want to return the most recent bookmarks an foreach error occurs.

Test script:
---------------
$service = &new Services_Delicious($this->myUser, $this->myPassword);
$posts = $service->getRecentPosts();

Expected result:
----------------
$posts should be filled with recent bookmark posts

Actual result:
--------------
an php error in Delicious.php