diff --git a/modules/statistics/php/stats_behavioural.class.inc b/modules/statistics/php/stats_behavioural.class.inc index 80f0b688983..bb62db6eb09 100644 --- a/modules/statistics/php/stats_behavioural.class.inc +++ b/modules/statistics/php/stats_behavioural.class.inc @@ -128,6 +128,8 @@ class Stats_Behavioural extends \NDB_Form $suproject_query ="AND s.SubprojectID IN ($subprojList)"; } $Visits = \Utility::getExistingVisitLabels($currentProject); + } else { + $Visits = \Utility::getExistingVisitLabels(); } $this->tpl_data['Visits'] = $Visits ?? '';