Преглед изворни кода

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 пре 13 година
родитељ
комит
9b3e81b6f4
1 измењених фајлова са 1 додато и 1 уклоњено
  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");
         }