diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-07-07 17:40:43 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-07-07 17:40:43 +0200 |
| commit | 143ea16d7af607cec6ce180c30f4645f94189113 (patch) | |
| tree | 56902c50e09b09ebde402e8d27e3fe4992576518 /lib | |
| parent | ca08ab1e5ebce1679f11e0d89b7e503f744c555e (diff) | |
| download | grauphel-143ea16d7af607cec6ce180c30f4645f94189113.tar.gz grauphel-143ea16d7af607cec6ce180c30f4645f94189113.zip | |
Handle not existing creation date on note object
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/notestorage.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/notestorage.php b/lib/notestorage.php index 2ae9fcb..275374c 100644 --- a/lib/notestorage.php +++ b/lib/notestorage.php @@ -120,6 +120,11 @@ class NoteStorage $note->{'last-metadata-change-date'} = date('c'); } + if (!isset($note->{'create-date'})) { + //no idea how to get the microseconds in there + $note->{'create-date'} = date('c'); + } + if (isset($noteUpdate->{'node-content'}) && $note->{'note-content-version'} == 0 ) { |
