[Pkg-owncloud-commits] [owncloud] 04/07: Do cheap (non DB) call first

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:14:34 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.13
in repository owncloud.

commit cb5faf5d87e9b8bebdca6937bfeff8cf78a4f396
Author: Markus Goetz <markus at woboq.com>
Date:   Thu Jun 20 10:52:16 2013 +0200

    Do cheap (non DB) call first
---
 lib/connector/sabre/node.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php
index 641e037..792c405 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];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list