diff options
author | Robin Appelman <robin@icewind.nl> | 2023-04-06 11:52:22 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-04-13 06:18:36 +0000 |
commit | a9c2373db74c6dab6a84f7b60ed58854854d97fa (patch) | |
tree | 65d498c160f5c53834db84be7572709ad0c9cee0 /lib/private/Files | |
parent | b1985ebb0f92505a692b1bffafd9411efcf96d5f (diff) | |
download | nextcloud-server-a9c2373db74c6dab6a84f7b60ed58854854d97fa.tar.gz nextcloud-server-a9c2373db74c6dab6a84f7b60ed58854854d97fa.zip |
handle not being able to write file for notify self-test
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files')
-rw-r--r-- | lib/private/Files/Storage/Common.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 36281d74cf5..541a28a4cd8 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -207,6 +207,9 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage { public function file_put_contents($path, $data) { $handle = $this->fopen($path, "w"); + if (!$handle) { + return false; + } $this->removeCachedFile($path); $count = fwrite($handle, $data); fclose($handle); |