diff options
author | Robin Appelman <robin@icewind.nl> | 2023-04-06 11:52:22 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-04-06 11:52:22 +0200 |
commit | 570b64aafcd57958d142ec829eac877c472542c0 (patch) | |
tree | a047bb1d98e5879a4d1ff9f65bf4f71f51fe7cce /lib | |
parent | 1ac7a3f10730824c0c15671e3303ab57f12e217d (diff) | |
download | nextcloud-server-570b64aafcd57958d142ec829eac877c472542c0.tar.gz nextcloud-server-570b64aafcd57958d142ec829eac877c472542c0.zip |
handle not being able to write file for notify self-test
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-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 3473eebc4a0..23f63dee264 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); |