From 790d51ea1efeb17c55870a5659a6f49e518d0ebe Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Tue, 10 Jun 2014 12:38:19 +0200
Subject: [PATCH] Fix checking for external share in encryption

---
 apps/files_encryption/lib/proxy.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 126a593ee3..b1af467685 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -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;
 		}
 
-- 
GitLab