]> source.dussan.org Git - nextcloud-server.git/commitdiff
clarify the duplication of the $params array
authorJens-Christian Fischer <jens-christian.fischer@switch.ch>
Sun, 12 Apr 2015 12:49:18 +0000 (14:49 +0200)
committerJens-Christian Fischer <jens-christian.fischer@switch.ch>
Sun, 12 Apr 2015 12:49:18 +0000 (14:49 +0200)
lib/private/files/cache/cache.php

index 70da3dc776d1c3171b79f234e13a4d5904f81463..13ebd6cb302e3c6e74fe8f7b66f59c235cb9d727 100644 (file)
@@ -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;