]> source.dussan.org Git - nextcloud-server.git/commit
Update cache when file size === 0 35367/head
authorLouis Chemineau <louis@chmn.me>
Wed, 23 Nov 2022 11:43:57 +0000 (12:43 +0100)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 23 Nov 2022 15:04:34 +0000 (15:04 +0000)
commitcadcebf96203938ba8e43a036f033088f0f30896
tree7fda6b173e204127dcc304b35dcc8ed30eee3a65
parentabafbd4b6eb6ccdec2d040f5e0f901a36a385f7b
Update cache when file size === 0

The conditions were false when $result === 0.
$results here contains the number of written bits.
The correct way of checking for operation success is to check if $result === false

Signed-off-by: Louis Chemineau <louis@chmn.me>
lib/private/Files/View.php