summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-09-17 08:58:10 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-09-17 08:58:10 +0200
commit930c97a0ef0f01751f6f645e4506a216ef98c8a0 (patch)
treecffcf467eb036eb19af4b26352f98dcdd88e20a9 /apps/files_sharing/lib
parent05edd1e5d6156766d072a9bf4782293b37210977 (diff)
downloadnextcloud-server-930c97a0ef0f01751f6f645e4506a216ef98c8a0.tar.gz
nextcloud-server-930c97a0ef0f01751f6f645e4506a216ef98c8a0.zip
Fix variable name and add spaces around path in info log line
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/SharedStorage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php
index 1735cab43f6..849736d70ac 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -305,9 +305,9 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
$this->init();
$isPartFile = pathinfo($path1, PATHINFO_EXTENSION) === 'part';
$targetExists = $this->file_exists($path2);
- $sameFodler = dirname($path1) === dirname($path2);
+ $sameFolder = dirname($path1) === dirname($path2);
- if ($targetExists || ($sameFodler && !$isPartFile)) {
+ if ($targetExists || ($sameFolder && !$isPartFile)) {
if (!$this->isUpdatable('')) {
return false;
}