diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-09 19:27:02 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-16 11:44:39 +0100 |
commit | aa63a16f2518a8dac07da958d0d28e550c59ae48 (patch) | |
tree | 24f67ddae6172ecb011b0412462d0fad899d5f40 /lib | |
parent | 27990b53601f845bc5eb9440a8abb65daca64ee2 (diff) | |
download | nextcloud-server-aa63a16f2518a8dac07da958d0d28e550c59ae48.tar.gz nextcloud-server-aa63a16f2518a8dac07da958d0d28e550c59ae48.zip |
Get the id before using it
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/cache.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index 1e9df6e4edd..77cffa3af28 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -256,8 +256,9 @@ class Cache { } // The file was created in the mean time + $id = $this->getId($file); $this->update($id, $data); - return $this->getId($file); + return $id; } } |