diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-09-02 19:52:45 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-09-02 19:52:45 +0200 |
commit | 8f2110e5dae67b23ff2454051c20cf843cb37755 (patch) | |
tree | 562f2c61907aa5de7f9fa6167cdcd7e595e4c49b /lib | |
parent | f97359706a407a876643026cb608e4d5dd319d29 (diff) | |
download | nextcloud-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.php | 4 |
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') { |