summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Douma <rullzer@users.noreply.github.com>2016-04-12 09:45:59 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-12 09:45:59 +0200
commit4ddf9f98f1189192acfeb5ba9046a4bc0b52dbe5 (patch)
tree1eecf4f299516b8e2b05776fe917eb4a1b2edd33
parent59080bef51eb73989c58be15e4b203cc17c9d0b6 (diff)
downloadnextcloud-server-4ddf9f98f1189192acfeb5ba9046a4bc0b52dbe5.tar.gz
nextcloud-server-4ddf9f98f1189192acfeb5ba9046a4bc0b52dbe5.zip
Don't calculate permissions twice (#23917)
There is no need to calculate the permissions twice. Saves some is_dir and file_exists calls.
-rw-r--r--lib/private/files/storage/common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index df0d9695449..85c2e1c6700 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -648,7 +648,7 @@ abstract class Common implements Storage, ILockingStorage {
}
$data['etag'] = $this->getETag($path);
$data['storage_mtime'] = $data['mtime'];
- $data['permissions'] = $this->getPermissions($path);
+ $data['permissions'] = $permissions;
return $data;
}