Explorar el Código

Fix ZF-12312: Zend_Service_Rackspace_Files_ObjectList throws exception on empty list

git-svn-id: http://framework.zend.com/svn/framework/standard/branches/release-1.12@25017 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob hace 13 años
padre
commit
9b3e81b6f4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      library/Zend/Service/Rackspace/Files/ObjectList.php

+ 1 - 1
library/Zend/Service/Rackspace/Files/ObjectList.php

@@ -68,7 +68,7 @@ class Zend_Service_Rackspace_Files_ObjectList implements Countable, Iterator, Ar
             require_once 'Zend/Service/Rackspace/Files/Exception.php';
             throw new Zend_Service_Rackspace_Files_Exception("You must pass a Zend_Service_Rackspace_Files object");
         }
-        if (empty($list)) {
+        if (!is_array($list)) {
             require_once 'Zend/Service/Rackspace/Files/Exception.php';
             throw new Zend_Service_Rackspace_Files_Exception("You must pass an array of data objects");
         }