summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-03 17:15:02 +0100
committerRobin Appelman <robin@icewind.nl>2022-03-04 16:30:16 +0100
commit917c74e214094e321ff96e1aa067ae60d22e2c58 (patch)
tree1b0c418966bec4c28785d1191a676310923c1180 /apps/files_sharing
parent07a7dcb8249c9e25ea7a702e8c932520e2b32de6 (diff)
downloadnextcloud-server-917c74e214094e321ff96e1aa067ae60d22e2c58.tar.gz
nextcloud-server-917c74e214094e321ff96e1aa067ae60d22e2c58.zip
type fixes
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Updater.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/Updater.php b/apps/files_sharing/lib/Updater.php
index 9ce114f495d..ad194dde016 100644
--- a/apps/files_sharing/lib/Updater.php
+++ b/apps/files_sharing/lib/Updater.php
@@ -26,6 +26,7 @@
*/
namespace OCA\Files_Sharing;
+use OC\Files\Mount\MountPoint;
use OCP\Constants;
use OCP\Share\IShare;
@@ -105,6 +106,7 @@ class Updater {
$mountManager = \OC\Files\Filesystem::getMountManager();
$mountedShares = $mountManager->findIn('/' . \OC_User::getUser() . '/files/' . $oldPath);
foreach ($mountedShares as $mount) {
+ /** @var MountPoint $mount */
if ($mount->getStorage()->instanceOfStorage(ISharedStorage::class)) {
$mountPoint = $mount->getMountPoint();
$target = str_replace($absOldPath, $absNewPath, $mountPoint);