From 5cbb20a04c99113f485ac59124d2f1ffce3f59ee Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Tue, 2 Oct 2007 10:34:28 +0200 Subject: Fix feed generation. darcs-hash:85bccb1687a2d4e49ac064d01e43cca11acac1bf --- journal-content.lisp | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'journal-content.lisp') diff --git a/journal-content.lisp b/journal-content.lisp index 2991ec4..43947d6 100644 --- a/journal-content.lisp +++ b/journal-content.lisp @@ -219,7 +219,19 @@ #-clisp (get-universal-time) #+clisp (max (compute-script-last-modified-date) - (select [max [slot-value 'journal-entry 'last-modification]]) - (select [max [slot-value 'journal-entry 'date]]) - (select [max [slot-value 'journal-comment 'date]])) + (or (single-object + (select [max [slot-value 'journal-entry 'last-modification]] + :from [journal-entry] + :flatp t)) + 0) + (or (single-object + (select [max [slot-value 'journal-entry 'date]] + :from [journal-entry] + :flatp t)) + 0) + (or (single-object + (select [max [slot-value 'journal-comment 'date]] + :from [journal-comment] + :flatp t)) + 0)) #.(restore-sql-reader-syntax-state)) -- cgit v1.2.3