diff --git a/swad_changelog.h b/swad_changelog.h index 51c5e365c..0f12d446f 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -103,11 +103,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.80.17 (2015/03/09)" +#define Log_PLATFORM_VERSION "SWAD 14.80.18 (2015/03/09)" // 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 | tail -1 /* + Version 14.80.18: Mar 09, 2015 Fixed bug in statistic of degrees and courses. (179481 lines) Version 14.80.17: Mar 09, 2015 Scope country for statistic of users. (179480 lines) Version 14.80.16: Mar 09, 2015 Scope country for statistic of degrees and courses. (179439 lines) Version 14.80.15: Mar 09, 2015 Scope country for statistic of webs / social networks. (179393 lines) diff --git a/swad_config.h b/swad_config.h index 9356e2c96..f9c4d6af4 100644 --- a/swad_config.h +++ b/swad_config.h @@ -28,7 +28,7 @@ /** Uncomment one of the following installations of SWAD or create your own **/ /*****************************************************************************/ -#define LOCALHOST_UBUNTU // Comment this line if not applicable +//#define LOCALHOST_UBUNTU // Comment this line if not applicable //#define OPENSWAD_ORG // Comment this line if not applicable //#define SWAD_UGR_ES // Comment this line if not applicable //#define WWW_CEVUNA_UNA_PY // Comment this line if not applicable diff --git a/swad_statistic.c b/swad_statistic.c index 47a5b0c46..35ab50a90 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -4040,7 +4040,7 @@ static void Sta_GetAndShowNumInssInSWAD (void) SubQuery[0] = '\0'; break; case Sco_SCOPE_CTY: - NumInssTotal = 1; + NumInssTotal = Ins_GetNumInssInCty (Gbl.CurrentCty.Cty.CtyCod); sprintf (SubQuery,"institutions.CtyCod='%ld' AND ", Gbl.CurrentCty.Cty.CtyCod); NumInssWithCtrs = Ins_GetNumInssWithCtrs (SubQuery);