aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/cache.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-09 19:27:02 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 22:37:49 +0100
commit2747a83a49ac803cc127614a6e0b40a244831bdf (patch)
tree49142157f2a9e15f3570d490828ca2e92b501514 /lib/private/files/cache/cache.php
parent3115d66d60927dfff7c2cf5523da7dfaa9d11773 (diff)
downloadnextcloud-server-2747a83a49ac803cc127614a6e0b40a244831bdf.tar.gz
nextcloud-server-2747a83a49ac803cc127614a6e0b40a244831bdf.zip
Get the id before using it
Diffstat (limited to 'lib/private/files/cache/cache.php')
-rw-r--r--lib/private/files/cache/cache.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index d39b59b23e4..f377e9777d6 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -259,8 +259,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;
}
}