diff --git a/swad_changelog.h b/swad_changelog.h index 179e65204..e80a5f4f8 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -138,13 +138,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.242.4 (2016-07-15)" +#define Log_PLATFORM_VERSION "SWAD 15.242.5 (2016-07-15)" #define CSS_FILE "swad15.229.css" #define JS_FILE "swad15.238.1.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 15.242.5: Jul 15, 2016 Fixed bug in user's registration. (203849 lines) Version 15.242.4: Jul 15, 2016 Fixed bug in creation of database table file_browser_size. (203847 lines) Version 15.242.3: Jul 14, 2016 Fixed bug in getting/finding users, due to default mysql mode in 5.7 which is ONLY_FULL_GROUP_BY. (203846 lines) Version 15.242.2: Jul 08, 2016 Code refactoring related to users' photos. diff --git a/swad_enrollment.c b/swad_enrollment.c index 2cdb9013f..59f053254 100644 --- a/swad_enrollment.c +++ b/swad_enrollment.c @@ -244,11 +244,12 @@ void Enr_RegisterUsrInCurrentCrs (struct UsrData *UsrDat,Rol_Role_t NewRole, "LastDowGrpCod,LastComGrpCod,LastAssGrpCod,NumAccTst,LastAccTst,NumQstsLastTst," "UsrListType,ColsClassPhoto,ListWithPhotos)" " VALUES ('%ld','%ld','%u','%c'," - "'-1','-1','-1','0','0000-00-00','0'," + "'-1','-1','-1','0',FROM_UNIXTIME('%ld'),'0'," "'%s','%u','%c')", Gbl.CurrentCrs.Crs.CrsCod,UsrDat->UsrCod,(unsigned) NewRole, KeepOrSetAccepted == Enr_SET_ACCEPTED_TO_TRUE ? 'Y' : 'N', + (long) (time_t) 0, // The user never accessed to tests in this course Usr_StringsUsrListTypeInDB[Usr_SHOW_USRS_TYPE_DEFAULT], Usr_CLASS_PHOTO_COLS_DEF, Usr_LIST_WITH_PHOTOS_DEF ? 'Y' : diff --git a/swad_test.c b/swad_test.c index e1085663f..721d57046 100644 --- a/swad_test.c +++ b/swad_test.c @@ -623,7 +623,7 @@ static bool Tst_CheckIfNextTstAllowed (void) long NumSecondsFromNowToNextAccTst = -1L; // Access allowed when this number <= 0 time_t TimeNextTestUTC = (time_t) 0; - /***** Superusers are allowed to do all test they want *****/ + /***** Superusers are allowed to do all tests they want *****/ if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM) return true;