mirror of https://github.com/acanas/swad-core.git
Version18.140.1
This commit is contained in:
parent
affb2891af
commit
b37eeee32c
|
@ -460,10 +460,11 @@ En OpenSWAD:
|
|||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.140 (2019-09-09)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.140.1 (2019-09-09)"
|
||||
#define CSS_FILE "swad18.138.css"
|
||||
#define JS_FILE "swad18.130.2.js"
|
||||
/*
|
||||
Version 18.140.1: Sep 09, 2019 Fixed bug in matches. (244217 lines)
|
||||
Version 18.140: Sep 09, 2019 Font awesome used for matches. (244211 lines)
|
||||
Copy the following icons to public directory:
|
||||
sudo cp -a fontawesome /var/www/html/swad/
|
||||
|
|
22
swad_game.c
22
swad_game.c
|
@ -3444,20 +3444,26 @@ static void Gam_GetElapsedTime (unsigned NumRows,MYSQL_RES *mysql_res,
|
|||
char HHHMMSS[3 + 1 + 2 + 1 + 2 + 1])
|
||||
{
|
||||
MYSQL_ROW row;
|
||||
bool ElapsedTimeGotFromDB = false;
|
||||
|
||||
if (NumRows)
|
||||
{
|
||||
row = mysql_fetch_row (mysql_res);
|
||||
|
||||
/* Get the elapsed time (row[0]) */
|
||||
if (strlen (row[0]) > 2 + 1 + 2 + 1 + 2)
|
||||
Str_Copy (HHHMMSS,"+99:59:59",
|
||||
Gam_MAX_BYTES_TITLE);
|
||||
else
|
||||
Str_Copy (HHHMMSS,row[0],
|
||||
Gam_MAX_BYTES_TITLE);
|
||||
if (row[0])
|
||||
{
|
||||
/* Get the elapsed time (row[0]) */
|
||||
if (strlen (row[0]) > 2 + 1 + 2 + 1 + 2)
|
||||
Str_Copy (HHHMMSS,"+99:59:59",
|
||||
Gam_MAX_BYTES_TITLE);
|
||||
else
|
||||
Str_Copy (HHHMMSS,row[0],
|
||||
Gam_MAX_BYTES_TITLE);
|
||||
ElapsedTimeGotFromDB = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
if (!ElapsedTimeGotFromDB)
|
||||
Str_Copy (HHHMMSS,"00:00:00",
|
||||
Gam_MAX_BYTES_TITLE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue