X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/849cf18b89186163bc3695c5a0eb2908471b95b3..f7ecfa21088175bc236b1136c1a4b2aa2488f37c:/lib/notestorage.php diff --git a/lib/notestorage.php b/lib/notestorage.php index 77c8fc6..63e1516 100644 --- a/lib/notestorage.php +++ b/lib/notestorage.php @@ -351,11 +351,11 @@ class NoteStorage 'note-content' => $row['note_content'], 'note-content-version' => $row['note_content_version'], - 'open-on-startup' => $row['note_open_on_startup'], - 'pinned' => $row['note_pinned'], + 'open-on-startup' => (bool) $row['note_open_on_startup'], + 'pinned' => (bool) $row['note_pinned'], 'tags' => json_decode($row['note_tags']), - 'last-sync-revision' => $row['note_last_sync_revision'], + 'last-sync-revision' => (int) $row['note_last_sync_revision'], ); }