[Pkg-owncloud-commits] [owncloud] 02/165: clarify the duplication of the $params array

David Prévot taffit at moszumanska.debian.org
Thu Apr 23 04:06:12 UTC 2015


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

taffit pushed a commit to branch stable8
in repository owncloud.

commit 9c95315a9eeeb72dbbbe3ae6babba49dffe46386
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 70da3dc..13ebd6c 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -306,7 +306,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