Skip to content

Commit

Permalink
[statistics] Fix table in stats module (#7534)
Browse files Browse the repository at this point in the history
Set missing template variable in stats module.
  • Loading branch information
ridz1208 committed Aug 19, 2021
1 parent 1be38d0 commit 3fa96fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/statistics/php/stats_demographic.class.inc
Expand Up @@ -250,6 +250,8 @@ class Stats_Demographic extends \NDB_Form

//SUBPROJECTS
$subprojectQuery = '';
$subprojects = \Utility::getSubprojectList();
$this->tpl_data['Subprojects'] = $subprojects;
// Only search for subprojects if $demographicProject is a positive int.
if (is_numeric($demographicProject) && intval($demographicProject) >= 0) {
$subprojects = \Utility::getSubprojectsForProject($demographicProject);
Expand Down

0 comments on commit 3fa96fd

Please sign in to comment.