From: Christian Weiske Date: Fri, 26 Sep 2014 12:31:02 +0000 (+0200) Subject: Fix bug #3: Inserting notes on PostgreSQL X-Git-Tag: v0.2.0~8 X-Git-Url: https://git.cweiske.de/grauphel.git/commitdiff_plain/21e7415fe5a418ef6dd7f29d3749b11cc9adaa7d?hp=d255eead2b9a0180cb7ceaf1e8b194337b7b6573 Fix bug #3: Inserting notes on PostgreSQL --- diff --git a/ChangeLog b/ChangeLog index c7e73b7..abbc1eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,4 +3,4 @@ * Fix oauth verification with tomdroid * Fix database date field lengths * Tomdroid sync works now - + * Fix bug #3: Inserting notes on PostgreSQL diff --git a/lib/notestorage.php b/lib/notestorage.php index d802669..7449417 100644 --- a/lib/notestorage.php +++ b/lib/notestorage.php @@ -407,8 +407,8 @@ class NoteStorage 'note_last_change_date' => $note->{'last-change-date'}, 'note_last_metadata_change_date' => $note->{'last-metadata-change-date'}, - 'note_open_on_startup' => $note->{'open-on-startup'}, - 'note_pinned' => $note->pinned, + 'note_open_on_startup' => (int) $note->{'open-on-startup'}, + 'note_pinned' => (int) $note->pinned, 'note_tags' => json_encode($note->tags), 'note_last_sync_revision' => $note->{'last-sync-revision'},