[Pkg-owncloud-commits] [owncloud] 40/103: clarify the duplication of the $params array
David Prévot
taffit at moszumanska.debian.org
Sun May 31 12:32:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.
commit c668a7c66547809158977be754c601984af4bb2f
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 7ea90d0..358e654 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -285,7 +285,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