From fd332eb5d1ef569dce3c53ce79545377f0faebfe Mon Sep 17 00:00:00 2001 From: cweiske Date: Sat, 16 Jan 2010 10:05:10 +0000 Subject: fix E_NOTICE in post_dates.php and show the last date, too git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@584 b3834d28-1941-0410-a4f8-b48e95affb8f --- www/api/posts_dates.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'www/api') diff --git a/www/api/posts_dates.php b/www/api/posts_dates.php index 9486b4f..7b1240f 100644 --- a/www/api/posts_dates.php +++ b/www/api/posts_dates.php @@ -41,6 +41,7 @@ echo '\r\n"; echo '\r\n"; $lastdate = null; +$count = 0; foreach ($bookmarks['bookmarks'] as $row) { $thisdate = gmdate('Y-m-d', strtotime($row['bDatetime'])); if ($thisdate != $lastdate && $lastdate != null) { @@ -51,6 +52,9 @@ foreach ($bookmarks['bookmarks'] as $row) { } $lastdate = $thisdate; } +if ($lastdate !== null) { + echo "\t\r\n"; +} echo ""; ?> \ No newline at end of file -- cgit v1.2.3