mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Remove empty attribute values in RSS feed
SVN revision: 1343
This commit is contained in:
parent
a65be67f7d
commit
59d585ff20
11
src/elogd.c
11
src/elogd.c
@ -6,6 +6,9 @@
|
||||
Contents: Web server program for Electronic Logbook ELOG
|
||||
|
||||
$Log$
|
||||
Revision 1.644 2005/05/02 12:57:19 ritt
|
||||
Remove empty attribute values in RSS feed
|
||||
|
||||
Revision 1.643 2005/05/02 10:21:13 ritt
|
||||
Fixed compiler warning
|
||||
|
||||
@ -15314,9 +15317,11 @@ void show_rss_feed(LOGBOOK * lbs)
|
||||
|
||||
title[0] = 0;
|
||||
for (i = 0; i < lbs->n_attr; i++) {
|
||||
strlcat(title, attrib[i], sizeof(title));
|
||||
if (i < lbs->n_attr - 1)
|
||||
strlcat(title, ", ", sizeof(title));
|
||||
if (attrib[i][0]) {
|
||||
strlcat(title, attrib[i], sizeof(title));
|
||||
if (i < lbs->n_attr - 1)
|
||||
strlcat(title, ", ", sizeof(title));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user