PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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