diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-12-21 16:37:03 +0100 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-12-21 17:28:50 +0100 |
commit | 60810b44bc28b3ce6fcd3c6e393ed647c105f25e (patch) | |
tree | 1b405c99019f673330bc40399e78f60ab1aa86bf /apps | |
parent | 0e4eeab3c138a867399ed02cc3b2480667156e91 (diff) | |
download | nextcloud-server-60810b44bc28b3ce6fcd3c6e393ed647c105f25e.tar.gz nextcloud-server-60810b44bc28b3ce6fcd3c6e393ed647c105f25e.zip |
check for class name in case class is not loaded
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_trashbin/lib/Storage.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php index 7f44ef3ea32..8dd41924aa6 100644 --- a/apps/files_trashbin/lib/Storage.php +++ b/apps/files_trashbin/lib/Storage.php @@ -28,7 +28,6 @@ namespace OCA\Files_Trashbin; use OC\Files\Filesystem; use OC\Files\Storage\Wrapper\Wrapper; use OC\Files\View; -use OCA\Files_Sharing\SharedStorage; use OCP\IUserManager; class Storage extends Wrapper { @@ -87,7 +86,7 @@ class Storage extends Wrapper { $targetOwner = $view->getOwner($newPath); if($sourceOwner !== $targetOwner - && $sourceStorage->instanceOfStorage(SharedStorage::class) + && $sourceStorage->instanceOfStorage('OCA\Files_Sharing\SharedStorage') ) { $fileMovedOutOfSharedFolder = true; } |