$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
) {
$keywordGroups['NOT'] = array();
}
- $sqlTplAnd = ' AND (note_title ILIKE ? OR note_tags ILIKE ? OR note_content ILIKE ?)';
- $sqlTplNot = ' AND NOT (note_title ILIKE ? OR note_tags ILIKE ? OR note_content ILIKE ?)';
+ $sqlTplAnd = ' AND (`note_title` ILIKE ? OR `note_tags` ILIKE ? OR `note_content` ILIKE ?)';
+ $sqlTplNot = ' AND NOT (`note_title` ILIKE ? OR `note_tags` ILIKE ? OR `note_content` ILIKE ?)';
$arData = array(
$this->username
);
);
}
}
-?>
\ No newline at end of file
+?>