diff options
author | Markus Goetz <markus@woboq.com> | 2013-06-20 12:52:16 +0400 |
---|---|---|
committer | Markus Goetz <markus@woboq.com> | 2013-06-20 12:52:16 +0400 |
commit | cb5faf5d87e9b8bebdca6937bfeff8cf78a4f396 (patch) | |
tree | 353db55d0c87489eae25ec73cb03bcd3cf2979fa | |
parent | e81aacb438fc6bb924039ed28a52b62b5ebf340e (diff) |
Do cheap (non DB) call first
-rw-r--r-- | lib/connector/sabre/node.php | 2 |
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]; |