Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2013-06-20 12:52:16 +0400
committerMarkus Goetz <markus@woboq.com>2013-06-20 12:52:16 +0400
commitcb5faf5d87e9b8bebdca6937bfeff8cf78a4f396 (patch)
tree353db55d0c87489eae25ec73cb03bcd3cf2979fa
parente81aacb438fc6bb924039ed28a52b62b5ebf340e (diff)
Do cheap (non DB) call first
-rw-r--r--lib/connector/sabre/node.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php
index 641e0370718..792c40521b9 100644
--- a/lib/connector/sabre/node.php
+++ b/lib/connector/sabre/node.php
@@ -285,7 +285,7 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
}
protected static function getFileSource($path) {
- if ( OC_App::isEnabled('files_sharing') && !strncmp($path, '/Shared/', 8)) {
+ if (!strncmp($path, '/Shared/', 8) && OC_App::isEnabled('files_sharing')) {
$source = OC_Files_Sharing_Util::getSourcePath(str_replace('/Shared/', '', $path));
$parts = explode('/', $source, 4);
$user = $parts[1];