Fix titles not being set properly on notes created via the Nextcloud API

master
Skylar Ittner 6 years ago
parent 9085802443
commit 6de5a44a1f

@ -46,7 +46,7 @@ class Note {
$notedata = $database->get('notes', ['noteid', 'ownerid', 'color', 'content', 'title', 'modified', 'favorite'], ['noteid' => $noteid]);
$note = new Note($notedata['content'], $notedata['color'], $notedata['ownerid'], $notedata['noteid']);
$note->setTitle(is_null($notedata['title']) ? "" : $notedata['title']);
//$note->setTitle(is_null($notedata['title']) ? "" : $notedata['title']);
$note->setModified(is_null($notedata['modified']) ? date("Y-m-d H:i:s") : $notedata['modified']);
$note->setFavorite($notedata['favorite'] == true);

Loading…
Cancel
Save