diff options
author | Simon Rettberg | 2016-08-10 11:18:12 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-08-10 11:18:12 +0200 |
commit | 5135886f2584631a414eb08e57d4ebdd2c48d611 (patch) | |
tree | 60a23166e7bdd4071d0d77d3687a3049815a28b2 /modules-available/statistics | |
parent | Merge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into mo... (diff) | |
download | slx-admin-5135886f2584631a414eb08e57d4ebdd2c48d611.tar.gz slx-admin-5135886f2584631a414eb08e57d4ebdd2c48d611.tar.xz slx-admin-5135886f2584631a414eb08e57d4ebdd2c48d611.zip |
Add fallback feature to Dictionary functions
Diffstat (limited to 'modules-available/statistics')
-rw-r--r-- | modules-available/statistics/inc/filterset.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/inc/filterset.inc.php b/modules-available/statistics/inc/filterset.inc.php index 7cc075c3..ea25d9b1 100644 --- a/modules-available/statistics/inc/filterset.inc.php +++ b/modules-available/statistics/inc/filterset.inc.php @@ -15,7 +15,7 @@ class FilterSet { $this->sortDirection = $direction === 'DESC' ? 'DESC' : 'ASC'; - if (array_key_exists($col, Page_Statistics::$columns)) { + if (is_string($col) && array_key_exists($col, Page_Statistics::$columns)) { $isMapped = array_key_exists('map_sort', Page_Statistics::$columns[$col]); $this->sortColumn = $isMapped ? Page_Statistics::$columns[$col]['map_sort'] : $col; } else { |