Browse Source

[ZF-9231] Zend_File:

- fixed exception

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21201 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 years ago
parent
commit
34a25f9b5a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      library/Zend/File/Transfer.php

+ 2 - 2
library/Zend/File/Transfer.php

@@ -74,9 +74,9 @@ class Zend_File_Transfer
 
         $direction = (integer) $direction;
         $this->_adapter[$direction] = new $adapter($options);
-        if (!$this->_adapter[$direction] instanceof Zend_File_Transfer_Adapter) {
+        if (!$this->_adapter[$direction] instanceof Zend_File_Transfer_Adapter_Abstract) {
             require_once 'Zend/File/Transfer/Exception.php';
-            throw new Zend_File_Transfer_Exception("Adapter " . $adapter . " does not extend Zend_File_Transfer_Adapter");
+            throw new Zend_File_Transfer_Exception("Adapter " . $adapter . " does not extend Zend_File_Transfer_Adapter_Abstract");
         }
 
         return $this;