[Pkg-owncloud-commits] [owncloud] 15/36: clarify the duplication of the $params array

David Prévot taffit at moszumanska.debian.org
Tue Jun 23 23:12:22 UTC 2015


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

taffit pushed a commit to branch master
in repository owncloud.

commit 07ef143fdeba3fe40ed61659dd32662e040b6766
Author: Jens-Christian Fischer <jens-christian.fischer at switch.ch>
Date:   Sun Apr 12 14:49:18 2015 +0200

    clarify the duplication of the $params array
---
 lib/private/files/cache/cache.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index bb36621..a41ff12 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -266,7 +266,8 @@ class Cache {
 		}
 
 		list($queryParts, $params) = $this->buildParts($data);
-
+		// duplicate $params because we need the parts twice in the SQL statement
+		// once for the SET part, once in the WHERE clause
 		$params = array_merge($params, $params);
 		$params[] = $id;
 

-- 
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