mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed bug with RSS feed if logbook is empty
SVN revision: 2217
This commit is contained in:
parent
cb49a54ee6
commit
6af8e2c68c
@ -18801,7 +18801,7 @@ void show_rss_feed(LOGBOOK * lbs)
|
|||||||
|
|
||||||
text = xmalloc(TEXT_SIZE);
|
text = xmalloc(TEXT_SIZE);
|
||||||
message_id = el_search_message(lbs, EL_LAST, 0, FALSE);
|
message_id = el_search_message(lbs, EL_LAST, 0, FALSE);
|
||||||
for (index = 0; index < n; index++) {
|
for (index = 0; index < n && message_id ; index++) {
|
||||||
rsprintf("<item>\n");
|
rsprintf("<item>\n");
|
||||||
|
|
||||||
size = TEXT_SIZE;
|
size = TEXT_SIZE;
|
||||||
@ -18866,8 +18866,6 @@ void show_rss_feed(LOGBOOK * lbs)
|
|||||||
|
|
||||||
rsprintf("</item>\n");
|
rsprintf("</item>\n");
|
||||||
message_id = el_search_message(lbs, EL_PREV, message_id, FALSE);
|
message_id = el_search_message(lbs, EL_PREV, message_id, FALSE);
|
||||||
if (!message_id)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
xfree(text);
|
xfree(text);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user