Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions modules/statistics/php/stats_behavioural.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@ class Stats_Behavioural extends \NDB_Form
$Visits = \Utility::getExistingVisitLabels($currentProject);
$this->tpl_data['Visits'] = $Visits;

// PREVENT Undefined property Console Output
if (!isset($this->params)) {
$this->params = null;
}

//---- BEHAVIORAL STATS -----
$result = $DB->pselect(
"SELECT s.CenterID,
Expand All @@ -150,7 +145,7 @@ class Stats_Behavioural extends \NDB_Form
$suproject_query
$Param_Project
GROUP by s.ID, s.CenterID, VLabel, f.Data_Entry",
$this->params
$this->params ?? array()
);

foreach ($result as $row) {
Expand Down
2 changes: 1 addition & 1 deletion modules/statistics/php/stats_demographic.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class Stats_Demographic extends \NDB_Form
$Param_Project
$Param_Site
GROUP BY s.subprojectid",
$this->params
$this->params ?? array()
);

foreach ($result as $row) {
Expand Down