ZF-12312: Zend_Service_Rackspace_Files_ObjectList throws exception on empty list

Description

If you try and list an empty container (or pseudo-directory) you get a Zend_Service_Rackspace_Files_Exception: "You must pass an array of data objects".

To reproduce:


$cf = new Zend_Service_Rackspace_Files(,);
$cf->createContainer('empty_container');
$objects = $cf->getObjects('empty_container');
$cf->deleteContainer('empty_container');
print_r($objects);

I think line 71 should check for an array, not an empty object.

Comments

Fix to allow listing of empty containers.

Fixed on trunk r25016 and release-1.12 r25017