Skip to content

Commit

Permalink
Potential fix for #326
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr authored Jul 13, 2019
1 parent b9efb72 commit 8422bae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Service/NotesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ public function update($id, $content, $userId, $category = null, $mtime = 0) {
}

if ($content !== null) {
$file->putContent($content);
$stream = fopen('php://temp', 'r+');
fwrite($stream, $content);
rewind($stream);
$file->putContent($stream);
}

if ($mtime) {
Expand Down

0 comments on commit 8422bae

Please sign in to comment.