summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-09-02 19:52:45 +0200
committerJoas Schilling <nickvergessen@gmx.de>2015-09-02 19:52:45 +0200
commit8f2110e5dae67b23ff2454051c20cf843cb37755 (patch)
tree562f2c61907aa5de7f9fa6167cdcd7e595e4c49b /lib
parentf97359706a407a876643026cb608e4d5dd319d29 (diff)
downloadnextcloud-server-8f2110e5dae67b23ff2454051c20cf843cb37755.tar.gz
nextcloud-server-8f2110e5dae67b23ff2454051c20cf843cb37755.zip
Revert "Soft fail when deleting and no entry found"
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/cache/cache.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php
index 274d97822f5..8cf097421d4 100644
--- a/lib/private/files/cache/cache.php
+++ b/lib/private/files/cache/cache.php
@@ -466,10 +466,6 @@ class Cache {
*/
public function remove($file) {
$entry = $this->get($file);
- if (!isset($entry['fileid'])) {
- // perhaps file was deleted in the mean time?
- return;
- }
$sql = 'DELETE FROM `*PREFIX*filecache` WHERE `fileid` = ?';
\OC_DB::executeAudited($sql, array($entry['fileid']));
if ($entry['mimetype'] === 'httpd/unix-directory') {