From 1faaacaea590f6588afaa11cfbcff49abebefb73 Mon Sep 17 00:00:00 2001 From: cfiehe Date: Wed, 11 Sep 2024 07:18:27 +0200 Subject: [PATCH] Update lib/Mount/GroupFolderStorage.php Agreed. Doing the comparison with the `===` operator is better, because it is stricter. Thank you very much for the suggestion. Co-authored-by: Ferdinand Thiessen Signed-off-by: cfiehe --- lib/Mount/GroupFolderStorage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Mount/GroupFolderStorage.php b/lib/Mount/GroupFolderStorage.php index aa607ee34..0d7db056a 100644 --- a/lib/Mount/GroupFolderStorage.php +++ b/lib/Mount/GroupFolderStorage.php @@ -11,6 +11,7 @@ use OC\Files\ObjectStore\ObjectStoreStorage; use OC\Files\Storage\Wrapper\Quota; use OCP\Files\Cache\ICacheEntry; +use OCP\Files\Storage\IStorage; use OCP\IUser; use OCP\IUserSession; @@ -73,7 +74,7 @@ public function getScanner($path = '', $storage = null) { public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath) { if ($sourceStorage->instanceOfStorage(ObjectStoreStorage::class) && $this->instanceOfStorage(ObjectStoreStorage::class) && - $sourceStorage->getObjectStore()->getStorageId() == $this->getObjectStore()->getStorageId()) { + $sourceStorage->getObjectStore()->getStorageId() === $this->getObjectStore()->getStorageId()) { // Do not import any data when source and target object storages are identical. return true; }