summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/CacheEntry.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/Cache/CacheEntry.php')
-rw-r--r--lib/private/Files/Cache/CacheEntry.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/CacheEntry.php b/lib/private/Files/Cache/CacheEntry.php
index a9d2a1acbf0..156f075c2d0 100644
--- a/lib/private/Files/Cache/CacheEntry.php
+++ b/lib/private/Files/Cache/CacheEntry.php
@@ -20,7 +20,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
-
namespace OC\Files\Cache;
use OCP\Files\Cache\ICacheEntry;
@@ -125,4 +124,8 @@ class CacheEntry implements ICacheEntry {
public function getData() {
return $this->data;
}
+
+ public function __clone() {
+ $this->data = array_merge([], $this->data);
+ }
}