diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2022-11-23 19:39:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-23 19:39:59 +0100 |
commit | 8707beb89c2f7870e231038b8a83d8d314db350f (patch) | |
tree | 584020eced2d0d56f2b98ff2105f065f739f5caf /lib | |
parent | 1861e98b136c4c83c357b2ce92e7635e70b3e1e4 (diff) | |
parent | cadcebf96203938ba8e43a036f033088f0f30896 (diff) | |
download | nextcloud-server-8707beb89c2f7870e231038b8a83d8d314db350f.tar.gz nextcloud-server-8707beb89c2f7870e231038b8a83d8d314db350f.zip |
Merge pull request #35367 from nextcloud/backport/35353/stable24
[stable24] Update cache when file size === 0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/View.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index a909cf46769..299f1e3df99 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1195,13 +1195,13 @@ class View { throw $e; } - if ($result && in_array('delete', $hooks)) { + if ($result !== false && in_array('delete', $hooks)) { $this->removeUpdate($storage, $internalPath); } - if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') { + if ($result !== false && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') { $this->writeUpdate($storage, $internalPath); } - if ($result && in_array('touch', $hooks)) { + if ($result !== false && in_array('touch', $hooks)) { $this->writeUpdate($storage, $internalPath, $extraParam); } |