mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Applied patch from Emiliano
SVN revision: 1390
This commit is contained in:
parent
e266fc15ce
commit
c5baa8760d
19
src/elogd.c
19
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.674 2005/05/27 12:39:17 ritt
|
||||||
|
Applied patch from Emiliano
|
||||||
|
|
||||||
Revision 1.673 2005/05/27 12:29:00 ritt
|
Revision 1.673 2005/05/27 12:29:00 ritt
|
||||||
Fixed problem that encoding could not be selected on new entries
|
Fixed problem that encoding could not be selected on new entries
|
||||||
|
|
||||||
@ -17370,16 +17373,16 @@ void show_elog_list(LOGBOOK * lbs, INT past_n, INT last_n, INT page_n, char *inf
|
|||||||
getcfg(lbs->name, "Guest list display", str, sizeof(str)) && !isparam("unm")) {
|
getcfg(lbs->name, "Guest list display", str, sizeof(str)) && !isparam("unm")) {
|
||||||
|
|
||||||
strcpy(list, str);
|
strcpy(list, str);
|
||||||
|
|
||||||
|
n = strbreak(list, (char (*)[NAME_LENGTH]) gattr, MAX_N_ATTR, ",");
|
||||||
|
for (j = 0; j < n; j++)
|
||||||
|
if (strieq(gattr + j * NAME_LENGTH, "text"))
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (n > 0 && j == n)
|
||||||
|
show_text = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
n = strbreak(list, (char (*)[NAME_LENGTH]) gattr, MAX_N_ATTR, ",");
|
|
||||||
for (j = 0; j < n; j++)
|
|
||||||
if (strieq(gattr + j * NAME_LENGTH, "text"))
|
|
||||||
break;
|
|
||||||
|
|
||||||
if (n > 0 && j == n)
|
|
||||||
show_text = FALSE;
|
|
||||||
|
|
||||||
if (list[0]) {
|
if (list[0]) {
|
||||||
n_attr_disp = strbreak(list, disp_attr, MAX_N_ATTR, ",");
|
n_attr_disp = strbreak(list, disp_attr, MAX_N_ATTR, ",");
|
||||||
if (show_text)
|
if (show_text)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user