Skip to content

Commit be03a4a

Browse files
committed
do not show -1 in online users count
1 parent 4e22fd2 commit be03a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csp/contests/unpriv_main_info.csp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
}
153153
%>
154154
<%
155-
if (!cnts->exam_mode && cs->max_online_count > 0) {
155+
if (!cnts->exam_mode && cs->max_online_count > 0 && phr->online_users >= 0) {
156156
%><p><b><s:_>On-line users in this contest</s:_>: <s:v value="phr->online_users" /></b></p><p><b><s:_>Max number of users was</s:_>: <s:v value="cs->max_online_count" />, <s:v value="cs->max_online_time" /></b></p>
157157
<%
158158
}

0 commit comments

Comments
 (0)