summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/inc')
-rw-r--r--modules-available/statistics/inc/statisticsfilter.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/statistics/inc/statisticsfilter.inc.php b/modules-available/statistics/inc/statisticsfilter.inc.php
index 49f4b59e..4a4899e2 100644
--- a/modules-available/statistics/inc/statisticsfilter.inc.php
+++ b/modules-available/statistics/inc/statisticsfilter.inc.php
@@ -505,6 +505,8 @@ class LocationStatisticsFilter extends EnumStatisticsFilter
}
if ($recursive) {
$argument = array_keys(Location::getRecursiveFlat($argument));
+ } elseif ($argument == 0) {
+ return 'locationid IS ' . ($operator === '!=' ? 'NOT' : '') . ' NULL';
}
return parent::whereClause($operator, $argument, $args, $joins);
}