]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix checking for external share in encryption
authorRobin Appelman <icewind@owncloud.com>
Tue, 10 Jun 2014 10:38:19 +0000 (12:38 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Sat, 14 Jun 2014 08:14:07 +0000 (10:14 +0200)
apps/files_encryption/lib/proxy.php

index 126a593ee3cde7374477e20da48f441731b54125..b1af4676852e2de6285adf9a00eb77e7868fe12d 100644 (file)
@@ -64,7 +64,10 @@ class Proxy extends \OC_FileProxy {
 
                // we don't encrypt server-to-server shares
                list($storage, ) = \OC\Files\Filesystem::resolvePath($path);
-               if ($storage instanceof OCA\Files_Sharing\External\Storage) {
+               /**
+                * @var \OCP\Files\Storage $storage
+                */
+               if ($storage->instanceOfStorage('OCA\Files_Sharing\External\Storage')) {
                        return true;
                }