aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2016-07-07 17:40:43 +0200
committerChristian Weiske <cweiske@cweiske.de>2016-07-07 17:40:43 +0200
commit143ea16d7af607cec6ce180c30f4645f94189113 (patch)
tree56902c50e09b09ebde402e8d27e3fe4992576518 /lib
parentca08ab1e5ebce1679f11e0d89b7e503f744c555e (diff)
downloadgrauphel-143ea16d7af607cec6ce180c30f4645f94189113.tar.gz
grauphel-143ea16d7af607cec6ce180c30f4645f94189113.zip
Handle not existing creation date on note object
Diffstat (limited to 'lib')
-rw-r--r--lib/notestorage.php5
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
) {