diff options
author | Simon Rettberg | 2020-06-03 11:45:06 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-06-03 11:45:06 +0200 |
commit | 691499b667acd1f329a994ca50205d57cd726e56 (patch) | |
tree | 371af1216b96b4731ce6a27c12d10d17feb7dbd3 /modules-available/statistics/inc | |
parent | [statistics] Less strict IP address validation (diff) | |
download | slx-admin-691499b667acd1f329a994ca50205d57cd726e56.tar.gz slx-admin-691499b667acd1f329a994ca50205d57cd726e56.tar.xz slx-admin-691499b667acd1f329a994ca50205d57cd726e56.zip |
[statistics] Fix querying location 0 (no location)
Diffstat (limited to 'modules-available/statistics/inc')
-rw-r--r-- | modules-available/statistics/inc/statisticsfilter.inc.php | 2 |
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); } |